Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(manager/helmfile): allow forward slashes in OCI chart names #33162

Merged
merged 7 commits into from
Dec 22, 2024

Conversation

kuzaxak
Copy link
Contributor

@kuzaxak kuzaxak commented Dec 17, 2024

Changes

The helmfile manager now properly handles OCI chart names that contain forward slashes. Previously, the validation would reject chart names with slashes even for OCI repositories. This change modifies the isValidChartName function to use different validation rules for OCI vs non-OCI charts.

Added test coverage to verify the new behavior works correctly.

Context

Issue was described in discussion.

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please select one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified unit tests, or
  • No unit tests but ran on a real repository, or
  • Both unit tests + ran on a real repository

@kuzaxak kuzaxak force-pushed the helmfile-oci-folders branch 2 times, most recently from bc18120 to 66bf03d Compare December 17, 2024 09:13
Issue was described in [discussion][1].

The helmfile manager now properly handles OCI chart names that contain forward slashes.
Previously, the validation would reject chart names with slashes even for OCI repositories.
This change modifies the isValidChartName function to use different validation rules
for OCI vs non-OCI charts.

Added test coverage to verify the new behavior works correctly.

[1]: renovatebot#26207
@kuzaxak kuzaxak force-pushed the helmfile-oci-folders branch from 66bf03d to 6040cd7 Compare December 17, 2024 09:20
rarkins
rarkins previously approved these changes Dec 17, 2024
@kuzaxak
Copy link
Contributor Author

kuzaxak commented Dec 17, 2024

@rarkins, my bad; I forgot to check the TS compilation. I checked and fixed both issues.

Tests are running too.

@kuzaxak kuzaxak requested a review from rarkins December 17, 2024 16:57
lib/modules/manager/helmfile/extract.spec.ts Outdated Show resolved Hide resolved
lib/modules/manager/helmfile/extract.ts Outdated Show resolved Hide resolved
@kuzaxak kuzaxak requested a review from viceice December 17, 2024 21:53
@kuzaxak
Copy link
Contributor Author

kuzaxak commented Dec 19, 2024

@viceice Hey, I've fixed the tests and linter problems. Could you review it once more? I see that the build passes.

Thank you!

@rarkins rarkins enabled auto-merge December 20, 2024 13:20
@kuzaxak
Copy link
Contributor Author

kuzaxak commented Dec 22, 2024

@rarkins I think after my last push a new review is required to pass check and merge PR.

@rarkins rarkins added this pull request to the merge queue Dec 22, 2024
Merged via the queue into renovatebot:main with commit 54e718e Dec 22, 2024
39 checks passed
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 39.81.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants