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

Can't deploy helm chart when artefact file name is different than chart name #2105

Closed
wim1988 opened this issue Sep 2, 2024 · 0 comments · Fixed by #2133
Closed

Can't deploy helm chart when artefact file name is different than chart name #2105

wim1988 opened this issue Sep 2, 2024 · 0 comments · Fixed by #2133
Assignees
Labels

Comments

@wim1988
Copy link

wim1988 commented Sep 2, 2024

What happened?

I wanted to deploy a helm chart into my vCluster, but vCluster was logging the error:
ERROR deploy/start.go:42 Error deploying manifests: couldn't find chart {"component": "vcluster"}

What did you expect to happen?

vCluster installs the specified helm chart.

How can we reproduce it (as minimally and precisely as possible)?

Specify a helm release like this:
...

vCluster will download and store the chart in its working directory as strimzi-kafka-operator-helm-3-chart-0.41.0.tgz.
Then it will fail with the error I mentioned. If I manually enter the vCluster pod and rename the file to strimzi-kafka-operator-0.41.0.tgz, it continues and succeeds.
This is because it only works, if the downloaded artefact name equals the specified helm chart name. I checked your code and this seems to be the issue.

Anything else we need to know?

No response

Host cluster Kubernetes version

$ kubectl version
Client Version: v1.29.0-eks-5e0fdde
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.28.10

vcluster version

$ vcluster --version
0.20.0
(also tested with 0.20.0-beta.5 and beta.16)

VCluster Config

values:
  sync:
    toHost:
      pods:
        rewriteHosts:
          initContainer:
            image: "library/alpine:3.13.1"
  controlPlane:
    distro:
      k3s:
        enabled: true
    statefulSet:
      persistence:
        volumeClaim:
          retentionPolicy: Retain
      scheduling:
        podManagementPolicy: OrderedReady
  experimental:
    deploy:
      vcluster:
        helm:
          - chart:
              name: strimzi-kafka-operator
              repo: https://strimzi.io/charts
              version: "0.41.0"
            release:
              name: strimzi-kafka-operator
              namespace: operators
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 a pull request may close this issue.

4 participants