kustomize icon indicating copy to clipboard operation
kustomize copied to clipboard

[junior] `helmChartInflationGenerator` is unable to pull the helm chart

Open Vanderscycle opened this issue 3 years ago • 1 comments
trafficstars

Unable to use helmChartInflationGenerator but the helm command works.

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

namespace: argocd

helmChartInflationGenerator: # all that it does is a helm pull
  - chartName: argo
    chartRepoUrl: https://argoproj.github.io/argo-helm
    chartVersion: 5.5.5
    releaseName: argo/argo-cd
    releaseNamespace: argocd

Expected output

Kustomize pulls the chart.

Actual output

Error: Error: chart "argo" version "^5.0.0" not found in https://argoproj.github.io/argo-helm repository
: unable to run: 'helm pull --untar --untardir /home/henri/Documents/infrastructure/charts/argocd/charts --repo https://argoproj.github.io/argo-helm argo --version ^5.0.0' with env=[HELM_CONFIG_HOME=/tmp/kustomize-helm-1748177833/helm HELM_CACHE_HOME=/tmp/kustomize-helm-1748177833/helm/.cache HELM_DATA_HOME=/tmp/kustom
ize-helm-1748177833/helm/.data] (is 'helm' installed?)
helm search repo argo-cd --version ^5.0.0
# output
NAME            CHART VERSION   APP VERSION     DESCRIPTION
argo/argo-cd    5.5.5           v2.4.12         A Helm chart for Argo CD, a declarative, GitOps...

When using the repo directly to find version it does show nothing so the error makes sense.

helm search repo argo-cd https://argoproj.github.io/argo-helm
No results found

What worked

# add the helm repo
helm repo add argo https://argoproj.github.io/argo-helm
NAME                    URL
[...]
argo                    https://argoproj.github.io/argo-helm
helm pull --untar --untardir /home/henri/Documents/infrastructure/charts/argocd/charts argo/argo-cd --version 5.5.5

Essentially, I am a bit confused because helm uses the same exact repo to get the right version. It is very possible that, as a junior, I am missing something.

Kustomize version

Platform

Running on Linux (EndeavourOS)

Kustomize version

{Version:4.5.7 GitCommit:$Format:%H$ BuildDate:2022-08-12T18:18:43Z GoOs:linux GoArch:amd64}

Helm version

version.BuildInfo{Version:"v3.9.4", GitCommit:"dbc6d8e20fe1d58d50e6ed30f09a04a77e4c68db", GitTreeState:"dirty", GoVersion:"go1.19"}

Works with gitea

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

namespace: git

resources:
  - secrets/

helmChartInflationGenerator:
  - chartName: gitea
    chartRepoUrl: https://dl.gitea.io/charts/
    chartVersion: 6.0.1
    releaseName: gitea
    # override with these custom values
    values: values.yaml

Thank you for reading.

Vanderscycle avatar Sep 29 '22 17:09 Vanderscycle

@Vanderscycle: This issue is currently awaiting triage.

SIG CLI takes a lead on issue triage for this repo, but any Kubernetes member can accept issues by applying the triage/accepted label.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

k8s-ci-robot avatar Sep 29 '22 17:09 k8s-ci-robot

The problem seems to be that you have chartName: argo instead of chartName: argo-cd. There doesn't appear to be a chart just named "argo", as the error message suggests.

/close /triage not-an-issue /kind support

KnVerey avatar Dec 07 '22 22:12 KnVerey

@KnVerey: Closing this issue.

In response to this:

The problem seems to be that you have chartName: argo instead of chartName: argo-cd. There doesn't appear to be a chart just named "argo", as the error message suggests.

/close /triage not-an-issue /kind support

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

k8s-ci-robot avatar Dec 07 '22 22:12 k8s-ci-robot

@KnVerey Hello Katrina. May you explain what is the differences between using HelmChartInflationGenerator and HelmCharts? I tested and seems both do the same thing. Thanks!

yigitpolat avatar Jan 02 '23 15:01 yigitpolat