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

Make helm charts argocd compatible #826

Open
MikeMichel opened this issue Aug 21, 2024 · 4 comments · May be fixed by #829
Open

Make helm charts argocd compatible #826

MikeMichel opened this issue Aug 21, 2024 · 4 comments · May be fixed by #829
Assignees
Labels
area/chart Chart related changes kind/enhancement New feature or request
Milestone

Comments

@MikeMichel
Copy link

Deploying crds with argocd fails with:
Unable to create application: application spec for elemental-operator is invalid: InvalidSpecError: Unable to generate manifests in : rpc error: code = Unknown desc = failed to walk for symlinks in /tmp/c880912f-9793-440b-a347-ca96b8307b6a/elemental-operator-crds-chart: lstat /tmp/c880912f-9793-440b-a347-ca96b8307b6a/elemental-operator-crds-chart: no such file or directory

This is because argocd untars the charts tgz and expects a subfolder with the same name as the chart itself defined in the config:

  source:
    repoURL: registry.suse.com/rancher
    targetRevision: 1.5.4
    chart: elemental-operator-crds-chart

But extractingelemental-operator-crds-chart-1.5.4.tgz creates a folder named elemental-operator-crds so the -chart part is missing and argocd fails.

Same for the operator chart.

@kkaempf kkaempf added the kind/bug Something isn't working label Aug 21, 2024
@kkaempf kkaempf added this to the Micro6.1 milestone Aug 21, 2024
@kkaempf
Copy link
Contributor

kkaempf commented Aug 21, 2024

Good catch, thanks for reporting this.

@anmazzotti anmazzotti linked a pull request Aug 22, 2024 that will close this issue
@anmazzotti anmazzotti self-assigned this Aug 22, 2024
@kkaempf
Copy link
Contributor

kkaempf commented Aug 23, 2024

Thinking about this, we're not sure if this is an Elemental or an ArgoCD bug. 🤔

Helm seems to be happy with the Charts as they are.

@MikeMichel do you have any references about ArgoCD's naming policy ?

@MikeMichel
Copy link
Author

MikeMichel commented Aug 23, 2024

Afaik there is no naming policy. I guess they expect the packaging is done with helm package where the name of the created tgz is the same like name in Chart.yaml or to be precise CHART_NAME-VERSION.tgz

@davidcassany
Copy link
Contributor

Following Rancher conventions we could consider renaming the charts as:

  • elemental-operator-chart -> elemental
  • elemental-opertaor-crds-chart -> elemental-crd

That way we would also align with marketplace charts.

@kkaempf kkaempf added the area/chart Chart related changes label Sep 17, 2024
@kkaempf kkaempf modified the milestones: Micro6.1, v1.7.0 Sep 17, 2024
@kkaempf kkaempf added kind/enhancement New feature or request and removed kind/bug Something isn't working labels Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/chart Chart related changes kind/enhancement New feature or request
Projects
Status: 💡 Backlog
Development

Successfully merging a pull request may close this issue.

4 participants