ct attempts to run `helm init` during `ct lint` and `ct install` commands when chart path has unescaped `/`
Is this a request for help?: No
Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT
Version of Helm and Kubernetes:
$ helm version
version.BuildInfo{Version:"v3.7.1", GitCommit:"1d11fcb5d3f3bf00dbe6fe31b8412839a96b3dc4", GitTreeState:"clean", GoVersion:"go1.16.9"}
$ kubectl version
Client Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.3", GitCommit:"c92036820499fedefec0f847e2054d824aea6cd1", GitTreeState:"clean", BuildDate:"2021-10-27T18:41:28Z", GoVersion:"go1.16.9", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"21+", GitVersion:"v1.21.2-eks-0389ca3", GitCommit:"8a4e27b9d88142bbdd21b997b532eb6d493df6d2", GitTreeState:"clean", BuildDate:"2021-07-31T01:34:46Z", GoVersion:"go1.16.5", Compiler:"gc", Platform:"linux/amd64"}
$ ct version
Version: v2.5.0
Git commit: aada0fd8afdace92a47da400274ec0211be9fefd
Date: 2021-09-03T07:48:00Z
License: Apache 2.0
What happened: Running ct lint or ct install results in the following output -
$ ct lint --config .chart-testing.yaml
Linting charts...
Using config file: .chart-testing.yaml
------------------------------------------------------------------------------------------------------------------------
Configuration
------------------------------------------------------------------------------------------------------------------------
Remote: origin
TargetBranch: master
Since: HEAD
BuildId:
LintConf: .helm-lint.yaml
ChartYamlSchema: .helm-chart-schema.yaml
ValidateMaintainers: false
ValidateChartSchema: true
ValidateYaml: true
CheckVersionIncrement: true
ProcessAllCharts: false
Charts: []
ChartRepos: [bitnami=https://charts.bitnami.com/bitnami]
ChartDirs: [apps/helm-apps helm]
ExcludedCharts: [metrics-server]
HelmExtraArgs:
HelmRepoExtraArgs: []
Debug: false
Upgrade: false
SkipMissingValues: false
Namespace:
ReleaseLabel:
------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------
Charts to be processed:
------------------------------------------------------------------------------------------------------------------------
metrics-server => (version: "1.0.1", path: "apps/helm-apps/metrics-server")
------------------------------------------------------------------------------------------------------------------------
Error: unknown command "init" for "helm"
Did you mean this?
lint
Error linting charts: Error initializing Helm: Error waiting for process: exit status 1
------------------------------------------------------------------------------------------------------------------------
No chart changes detected.
------------------------------------------------------------------------------------------------------------------------
you'll see above that, for some reason, ct wants to run helm init? When that is not a valid command on Helm v3.
What you expected to happen: ct lint or install to complete successfully.
How to reproduce it (as minimally and precisely as possible): Add a path under chart-dirs that has an unescaped / (backslash) in the path. If you switch it to, however, \/, or an escaped backslash, this completes successfully.
Anything else we need to know: I'm not sure where or how helm init is even called, because it doesn't appear to reside within this codebase (searching for helm init, or init in general).
$ ct version Version: v2.5.0
you'll see above that, for some reason,
ctwants to runhelm init? When that is not a valid command on Helm v3.
Does this happen with ct version 3.x? e.g. the latest v3.4.0
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue was closed because it has been stalled for 5 days with no activity.