Azure / setup-helm

Github Action for installing Helm
MIT License
141 stars 48 forks source link

Error: unknown command "chart" for "helm" #50

Closed jsinh closed 2 years ago

jsinh commented 3 years ago

We are using this action in our GitHub workflow actions. Current set to use latest Helm Version - since morning our builds are failing and I see that it has started pulling Helm Version: v3.7.0

After setup on any helm command like for helm chart pull ... helm chart export ... are failing and it says:

Error: unknown command "chart" for "helm"

I checked for new Helm Releases and seems like Helm 3.7.0 was released ~17 hours ago and they have mentioned that all helm chart.. commands are removed.

https://github.com/helm/helm/releases

I don't see this documented on this link: https://docs.microsoft.com/en-us/azure/container-registry/container-registry-helm-repos

I am not sure how to deal with this blockage. For now, I am changing it to a specific version that works for us and not latest. But can someone help update the document for old version equivalent new version commands and may be mentioned that change somewhere.

Thanks in advance!

alikhtag commented 3 years ago

The command flow is different. One notable addition is one needs to add oci:// when pushing and installing from registry.

helm package chart_dir/
>> Successfully packaged chart and saved it to: $CHART_NAME-$CHART_VERSION.tgz

helm push $CHART_NAME-$CHART_VERSION.tgz oci://your_oci_registry
# is you want to pull it and untar it and then install
helm pull oci://your_oci_registry/$CHART_NAME --version $CHART_VERSION 
tar -xzf $CHART_NAME-$CHART_VERSION.tgz 
helm install RELEASE_NAME  CHART_NAME/

# No need to pull one can install directly from oci
helm install RELEASE_NAME oci://your_oci_registry/$CHART_NAME --version $CHART_VERSION 
jsinh commented 3 years ago

@alikhtag Is it safe to assume that we don't need to do: helm save part - helm pull will save it to a local folder? Pardon me if I am not asking it in right way, I am a little bit new to this

alikhtag commented 3 years ago

@jsinh Yes, you can just do helm install RELEASE_NAME oci://your_oci_registry/$CHART_NAME --version $CHART_VERSION without helm pull And yes helm pull just pulls a tarball gzip in working directory. helm chart save was somewhat replaced by helm package, by somewhat I mean that helm chart save used to tag the helm chart OCI image as well.

jsinh commented 3 years ago

@alikhtag Got it thanks

github-actions[bot] commented 3 years ago

This issue is idle because it has been open for 14 days with no activity.

qpetraroia commented 2 years ago

Hi @jsinh,

Did @alikhtag help you solve your issue? Can this be closed?

jsinh commented 2 years ago

@qpetraroia Yes @alikhtag response helps solve my block. Using the above example and update documentation I am about to use the latest HELM CLI for all installs and upgrades.

Thanks & Cheers!