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

Add defaultRegistryURL and defaultRepoType for non-OCI HelmRepository support #239

Merged
merged 3 commits into from
Sep 6, 2024

Conversation

squizzi
Copy link

@squizzi squizzi commented Aug 28, 2024

While working on figuring out what registry to use for CI in #220 I thought why not use Mirantis Secure Registry (MSR)?welp.. that was a journey.

Currently we hardcode the HelmRepostory type to oci when reconciling the default hmc-templates repository. The problem with this is, for whatever reason, MSR does not like OCI (even though, I'm pretty sure it implements the spec) and it results in insufficient_scope errors when we try to pull the charts. After some digging through helm-controller CRDs and docs I discovered this setting: https://fluxcd.io/flux/components/source/helmrepositories/#type and changed our HelmRepository we reconcile to use 'default' which fixed the issue and pulled the chart with no problems.


This patch renames the existing 'defaultOCIRegistry' flag and associated Helm values to 'defaultRegistryURL' and introduces a new type: 'defaultRepoType' which allows for modification of the previously hardcoded 'oci' type for chart repositories.

This patch renames the existing 'defaultOCIRegistry' flag and associated
Helm values to 'defaultRegistryURL' and introduces a new type:
'defaultRepoType' which allows for modification of the previously
hardcoded 'oci' type for chart repositories.

Signed-off-by: Kyle Squizzato <[email protected]>
cmd/main.go Outdated Show resolved Hide resolved
Signed-off-by: Kyle Squizzato <[email protected]>
@squizzi squizzi force-pushed the patch_support-non-oci-registry-types branch from 76f00fd to 9769233 Compare September 3, 2024 20:33
@Kshatrix Kshatrix merged commit 2196956 into K0rdent:main Sep 6, 2024
1 check passed
@squizzi squizzi deleted the patch_support-non-oci-registry-types branch September 6, 2024 18:16
bnallapeta pushed a commit to bnallapeta/hmc that referenced this pull request Nov 15, 2024
…istry-types

Add defaultRegistryURL and defaultRepoType for non-OCI HelmRepository support
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

3 participants