helm-classic
helm-classic copied to clipboard
`helm install -g <chart>` does not have the expected result
Test commands:
helm repo add bitnami https://github.com/bitnami/charts
helm fetch bitnami/mariadb
helm install -g mariadb
Result:
Only the mariadb service manifest is deployed. The replication controller manifest is not.
Details:
The above reference mariadb charts has the directory structure:
mariadb/
├── Chart.yaml
├── manifests
│ └── mariadb-svc.yaml
├── README.md
└── tpl
├── mariadb-rc.yaml
└── values.toml
helm install -g mariadb does run the generator and install the mariadb-rc.yaml manifest, but helm only deploys the mariadb-svc.yaml manifest. The expected behaviour would be to deploy all the manifests.
Workaround
Execute helm generate mariadb before executing helm install mariadb (without the -g argument)
I think the bug is that after the generate step helm does not re-read the manifest list. So any net new file that is created as part of a generator is not installed.