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

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

Closed
jsinh opened this issue Sep 16, 2021 · 7 comments
Closed

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

jsinh opened this issue Sep 16, 2021 · 7 comments
Assignees
Labels
waiting-for-customer Waiting for inputs from customer

Comments

@jsinh
Copy link

jsinh commented Sep 16, 2021

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!

@jsinh jsinh added the need-to-triage Requires investigation label Sep 16, 2021
@alikhtag
Copy link

alikhtag commented Sep 16, 2021

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
Copy link
Author

jsinh commented Sep 16, 2021

@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
Copy link

alikhtag commented Sep 16, 2021

@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
Copy link
Author

jsinh commented Sep 17, 2021

@alikhtag Got it thanks

@github-actions
Copy link

github-actions bot commented Oct 1, 2021

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

@github-actions github-actions bot added the idle Inactive for 14 days label Oct 1, 2021
@qpetraroia
Copy link
Collaborator

Hi @jsinh,

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

@qpetraroia qpetraroia self-assigned this Nov 30, 2021
@qpetraroia qpetraroia added waiting-for-customer Waiting for inputs from customer and removed need-to-triage Requires investigation idle Inactive for 14 days labels Nov 30, 2021
@jsinh
Copy link
Author

jsinh commented Dec 2, 2021

@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!

@jsinh jsinh closed this as completed Dec 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting-for-customer Waiting for inputs from customer
Projects
None yet
Development

No branches or pull requests

3 participants