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

Updating index.yaml with OCI URLs #652

Merged
merged 1 commit into from
Jan 7, 2025
Merged

Conversation

max-rocket-internet
Copy link
Member

@max-rocket-internet max-rocket-internet commented Jan 7, 2025

Part of ongoing work to move to hosting the entirety of this repo (Helm repo index.yaml and OCI packages) on Github.

To update this file I ran:

# create the package files
for d in stable/*; do helm package "$d" -u; done

# change URLs to OCI links
yq eval -i '. |= .entries[][] |= .urls[0] = "oci://" + "ghcr.io/deliveryhero/helm-charts" + "/" + .name + ":" + .version' index.yaml

And then compared with:

# get old chart list
helm search repo deliveryhero | grep -v private | grep -v NAME | sort > old.txt

# add new index.yaml as repo
helm repo add deliveryhero-oci https://raw.githubusercontent.com/deliveryhero/helm-charts/cc75ee73b8e434d9cc40a77fbad4cfe43f7dc259

# get new chart list
helm search repo deliveryhero-oci | grep -v private | grep -v NAME | sort > new.txt

# compare
diff old.txt new.txt

Looks good. And templating a chart via the new index.yaml and OCI package works:

helm template deliveryhero-oci/priority-class --version 0.1.1

@max-rocket-internet max-rocket-internet requested a review from a team as a code owner January 7, 2025 11:38
@max-rocket-internet max-rocket-internet merged commit c1d2007 into master Jan 7, 2025
6 of 9 checks passed
@max-rocket-internet max-rocket-internet deleted the update_urls branch January 7, 2025 11:50
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.

1 participant