Error in installing csidrvier to a kubernetes namesapce - This command needs 1 argument: chart name Error in installing csidrvier to a kubernetes namesapce - This command needs 1 argument: chart name kubernetes kubernetes

Error in installing csidrvier to a kubernetes namesapce - This command needs 1 argument: chart name


According to the official docs:

This command installs a chart archive.

The install argument must be a chart reference, a path to a packagedchart, a path to an unpacked chart directory or a URL.

To override values in a chart, use either the –values flag and passin a file or use the –set flag and pass configuration from thecommand line. To force string values in –set, use –set-stringinstead. In case a value is large and therefore you want not to useneither –values nor –set, use –set-file to read the single largevalue from file.

CHART REFERENCES

A chart reference is a convenient way of reference a chart in a chartrepository.

When you use a chart reference with a repo prefix (‘stable/mariadb’),Helm will look in the local configuration for a chart repository named‘stable’, and will then look for a chart in that repository whose nameis ‘mariadb’. It will install the latest version of that chart unlessyou also supply a version number with the ‘–version’ flag.

To see the list of chart repositories, use ‘helm repo list’. To searchfor charts in a repository, use ‘helm search’.

helm install [CHART] [flags]

Note the:

-n, --name string          release name. If unspecified, it will autogenerate one for you

and:

--namespace string         namespace to install the release into. Defaults to the current kube config namespace.

The error you see means that you did not reference the chart name properly. It looks like there are too many arguments for --name (csi-secrets-store and csi). For example it should look more like this:

helm install --name <release name> --namespace <namespace>

which would be transleted into your use case as:

helm install --name csi-secrets-store secrets-store-csi-driver/secrets-store-csi-driver --namespace csi

*Note that I am not sure of the values you want to use so you have to check them yourself and adjust if needed. Here I assume that csi is the namespace, csi-secrets-store is the release name and secrets-store-csi-driver/secrets-store-csi-driver is the repo/chart name.

Also make sure that the chart you want to install does not require Helm v3.0+. If so, than you will have to upgrade it before installing.