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(kustomize): support OCI helm charts #27163

Merged
merged 11 commits into from Mar 13, 2024

Conversation

chancez
Copy link
Contributor

@chancez chancez commented Feb 8, 2024

Changes

Correctly handle OCI charts with the kustomize manager. This requires setting the datasource to docker and replacing the oci:// scheme with https://. For the implementation, I simply adapted the approach used in the helmv3 manager. I do think there's more to do in terms of support, like digests, and probably auth, but for my use-case, this was sufficient. I tested with, and without auth against a quay.io registry.

Context

Renovate was updated to handle updating helmCharts within a kustomization.yaml in #12628. However, in Kustomize 5.2.0 it got support for inflating helm charts stored in OCI repositories. Currently renovate fails to update these dependencies because it simply treats OCI helm repos the same as regular helm repos, and fails.

There were similar issues with other managers, but nothing for Kustomize that I could find. The related issues for other managers I found are:

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

@CLAassistant
Copy link

CLAassistant commented Feb 8, 2024

CLA assistant check
All committers have signed the CLA.

@chancez chancez marked this pull request as ready for review February 8, 2024 20:01
Signed-off-by: Chance Zibolski <chance.zibolski@gmail.com>
@chancez chancez force-pushed the pr/chancez/kustomize_oci_charts branch from ab65a2d to af2accb Compare February 9, 2024 17:05
lib/modules/manager/kustomize/extract.ts Outdated Show resolved Hide resolved
lib/modules/manager/kustomize/extract.spec.ts Outdated Show resolved Hide resolved
lib/modules/manager/kustomize/extract.spec.ts Outdated Show resolved Hide resolved
@chancez chancez requested a review from viceice February 12, 2024 16:45
lib/modules/manager/kustomize/extract.spec.ts Outdated Show resolved Hide resolved
lib/modules/manager/kustomize/extract.spec.ts Outdated Show resolved Hide resolved
lib/modules/manager/kustomize/extract.ts Outdated Show resolved Hide resolved
@chancez chancez requested a review from viceice February 13, 2024 00:01
Copy link
Member

@viceice viceice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lib/modules/manager/kustomize/extract.ts Outdated Show resolved Hide resolved
lib/modules/manager/kustomize/extract.spec.ts Outdated Show resolved Hide resolved
lib/modules/manager/kustomize/extract.ts Outdated Show resolved Hide resolved
lib/modules/manager/kustomize/extract.ts Outdated Show resolved Hide resolved
lib/modules/manager/kustomize/extract.ts Outdated Show resolved Hide resolved
viceice
viceice previously approved these changes Mar 13, 2024
@viceice viceice added this pull request to the merge queue Mar 13, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 13, 2024
@viceice viceice added this pull request to the merge queue Mar 13, 2024
Merged via the queue into renovatebot:main with commit 91bf759 Mar 13, 2024
35 checks passed
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 37.243.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@chancez chancez deleted the pr/chancez/kustomize_oci_charts branch March 13, 2024 16:36
@chancez
Copy link
Contributor Author

chancez commented Mar 13, 2024

Awesome thanks everyone!

@MPV
Copy link
Contributor

MPV commented Mar 15, 2024

I'm glad to report that I'm seeing this working in a few of my repos now. 🎉

@MPV
Copy link
Contributor

MPV commented Mar 15, 2024

I just went back into @thomaschaaf's minimal reproduction repo below and it got me thinking: is this working fully as desired yet?

See:

Here's what Renovate changed in that issue description ~18 hours ago:

Skärmavbild 2024-03-15 kl  16 06 35

@viceice
Copy link
Member

viceice commented Mar 15, 2024

please open a new discussion

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants