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(helm): Add support for OCI chart repositories #445

Merged
merged 1 commit into from
Oct 27, 2023
Merged

feat(helm): Add support for OCI chart repositories #445

merged 1 commit into from
Oct 27, 2023

Conversation

jcsf
Copy link
Contributor

@jcsf jcsf commented Jun 8, 2022

What this PR does / why we need it:
Since Helm 3.8 the support of OCI registries is no longer experimental and is enabled by default, this means that more and more people will be using registries to store charts. In order to support this type of repository, a small change is needed because OCI registries can't be added like "regular repositories", and need to use a different command "helm registry login".

Therefore, and since it was already agreed that OCI repositories should start the URL with "oci://" this PR uses the prefix of the repository URL to select the right command to be able to add these type of repositories.

Special notes for your reviewer: I didn't added any automation test because didn't find any similar to what already was done, I tested this locally using a registry of mine.

Signed-off-by: João Fernandes jcsf_1995@hotmail.com

@tuananh-finx
Copy link

tuananh-finx commented Jun 20, 2022

can someone review this? we're adopting OCI and currently running this custom build as workaround

@tuananh
Copy link

tuananh commented Aug 12, 2022

bumping this up for visibility :)

@jcsf
Copy link
Contributor Author

jcsf commented Jan 26, 2023

Can a maintainer look at this? It is a really small review that helps a lot of users.

@hungran
Copy link

hungran commented Sep 4, 2023

+1 on this feature
pipe-cd/pipecd#4588

@cpanato cpanato closed this Oct 27, 2023
@cpanato cpanato reopened this Oct 27, 2023
@cpanato
Copy link
Member

cpanato commented Oct 27, 2023

@jcsf sorry for the delay here, can you rebase and fix the lint issues?

@jcsf
Copy link
Contributor Author

jcsf commented Oct 27, 2023

@jcsf sorry for the delay here, can you rebase and fix the lint issues?

Sure, will work on this today and update the PR.

@jcsf
Copy link
Contributor Author

jcsf commented Oct 27, 2023

@cpanato Please retrigger the pipelines I believe the linter is fixed and the branch rebased.

pkg/tool/helm.go Outdated Show resolved Hide resolved
Signed-off-by: João Fernandes <jcsf_1995@hotmail.com>
Copy link
Member

@cpanato cpanato left a comment

Choose a reason for hiding this comment

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

thank you!

@cpanato cpanato merged commit 0cb17e5 into helm:main Oct 27, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants