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

ArgoCD expects index.yaml for Helm Chart on OCI Registry when using SemVer Ranges #9528

Closed
rowi1de opened this issue May 27, 2022 Discussed in #9509 · 3 comments · Fixed by #10641
Closed

ArgoCD expects index.yaml for Helm Chart on OCI Registry when using SemVer Ranges #9528

rowi1de opened this issue May 27, 2022 Discussed in #9509 · 3 comments · Fixed by #10641

Comments

@rowi1de
Copy link
Contributor

rowi1de commented May 27, 2022

Discussed in #9509

Originally posted by rowi1de May 25, 2022

  • For Git based you are able to point an Application to a branch or ref
  source:
    repoURL:  https://github.com/rowi1de/graphql-reactive
    targetRevision:  HEAD
  • ArgoCD will always deploy the latest commit / revision

  • For Helm in OCI you need to specify a fixed Version of the Helm Chart in the Application

 project: my-helm-chart
 source:
   repoURL: ghcr.io/rowi1de/graphql-reactive
   targetRevision:  0.0.17
  project: my-helm-chart
  source:
    repoURL: ghcr.io/rowi1de/graphql-reactive
    targetRevision: 0.0.*
helm pull oci://ghcr.io/rowi1de/graphql-reactive/graphql-reactive --version '0.0.*'
Pulled: ghcr.io/rowi1de/graphql-reactive/graphql-reactive:0.0.17

helm pull oci://ghcr.io/rowi1de/graphql-reactive/graphql-reactive --version '0.1.*'
Pulled: ghcr.io/rowi1de/graphql-reactive/graphql-reactive:0.1.2

Or hoping for helm helm/helm#11000

@rowi1de rowi1de changed the title ArgoCD expects index.yaml for OCI Registry when using SemVer Ranges ArgoCD expects index.yaml for Helm Chart on OCI Registry when using SemVer Ranges May 27, 2022
@sunib
Copy link

sunib commented May 31, 2022

Thanks for this elaborate bug. I'm just walking into the same problem while trying to run my application from an OCI helm chart repo (acr).

When I use a fixed version all works: anything range like is failing.

This is a shame since I now need to update my application by hand on every change.

@rowi1de
Copy link
Contributor Author

rowi1de commented May 31, 2022

@sunib welcome 🙌🏻 if more people start to use OCI it can get more popular. 🤞 here ... let's see what happens. The issue mainly affects or originates from OCI & Helm and a small bug in ArgoCD (index.yaml)

I'm not 100% if the listing of Tags is OCI standard or depends on the registry.

@alexef
Copy link
Member

alexef commented Sep 27, 2022

Please see my solution in #10641 - successfully tested on our set up (using AWS ECR as OCI repo for helm) trying to find a reviewer 🙏

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 a pull request may close this issue.

3 participants