Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

`helm upgrade --name` results in "Error: unknown flag: --name"

When running helm upgrade --install --namespace $PROJECT_NAMESPACE --values values.yaml --name $SOME_NAME some/chart.

I get Error: unknown flag: --name.

Is there no way to set the name of a chart you are targeting with upgrade? Is this only possible for install?

like image 888
Simon I Avatar asked Apr 24 '17 13:04

Simon I


People also ask

How do I change my helm chart name?

Just 2 steps: find and replace the name in the chart files. rename chart directory name.

How do I upgrade my helm chart?

To perform a helm release upgrade using the CLI, run the following command provided: helm upgrade <release name> <chart directory> -f my-values. yaml using the configuration specified in the customized values. yaml file. After a successful upgrade, the helm will return the following message.

What does helm upgrade command do?

When a new version of a chart is released, or when you want to change the configuration of your release, you can use the helm upgrade command. An upgrade takes an existing release and upgrades it according to the information you provide.

Does helm upgrade recreate pods?

If we do an edit on the code and commit the changes (then of course rebuild the image), it does get deployed. helm upgrade --install (as stated in the doc) doesn't restart the pod (or redeploy) a version that already exists.


1 Answers

The solution was that no --name was needed.

The syntax for a Helm Upgrade is "helm upgrade [RELEASE] [CHART]", so the "RELEASE" is the same as what would be the --name in a Helm Install.

like image 187
Simon I Avatar answered Sep 22 '22 08:09

Simon I