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(helmv3): support for private repositories and registries in lock files #13726

Merged
merged 8 commits into from Jan 24, 2022

Conversation

secustor
Copy link
Collaborator

Changes:

Adds login commands for private registries and repositories, if a fitting host rule has been found

Context:

Closes #13524
Closes #10659

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 tick one)

I have verified these changes via:

@secustor secustor changed the title fix(helmv3): support for private repositories and registries in lock files feat(helmv3): support for private repositories and registries in lock files Jan 21, 2022
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.

Looks good so far

lib/manager/helmv3/artifacts.spec.ts Show resolved Hide resolved
// get repositories and registries defined in the package file
const packages = yaml.load(newPackageFileContent) as ChartDefinition; //TODO #9610
const locks = yaml.load(
existingLockFileContent.toString()
Copy link
Member

Choose a reason for hiding this comment

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

Why toString? Should not be required.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

existingLockFileContent is a Buffer and the load function only accepts the content as string.

Copy link
Member

Choose a reason for hiding this comment

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

Add utf-8 encoding to the readLocalFile then you'll get a string. 😉

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

My thought has been that it is "safer" to compare the Buffers at https://github.com/renovatebot/renovate/pull/13726/files#diff-c2af1ba9c74f4a977e199d28c1e555ace1ce248ab708c0a5874fa5e5e2cd13c7R160, as encoding can not affect it then.

But works for me.

@secustor secustor requested a review from viceice January 22, 2022 22:16
@viceice viceice requested a review from rarkins January 24, 2022 08:25
@rarkins rarkins enabled auto-merge (squash) January 24, 2022 11:34
@rarkins rarkins merged commit f372a68 into renovatebot:main Jan 24, 2022
@secustor secustor deleted the fix_oci_helm branch January 24, 2022 16:21
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 31.51.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

ademar59 pushed a commit to ademar59/renovate that referenced this pull request Jan 24, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 24, 2022
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.

Pulling Private OCI dependencies in Helm Chart Helmv3 Manager should support private Helm repositories
5 participants