[Helm][Bug] Conditions Defined for Sub Charts Not Working

503 views
Skip to first unread message

Chiranga Alwis

unread,
Aug 17, 2020, 11:33:32 AM8/17/20
to kubernetes-sig-apps
Hi all,

While working with Helm, it was noticed that the conditions defined in the requirements.yaml of a Helm chart, for each sub chart have no effect.

For example, in the Helm chart I am using with apiVersion: v1, the requirements.yaml file contains the following.

dependencies:
  - name: mysql-am
    version: "3.2.0-1"
    repository: "https://helm.wso2.com"
    condition: mysql-am.enabled
  - name: nfs-server-provisioner
    version: "1.0.0"
    condition: nfs-server-provisioner.enabled

The base values.yaml contains the following.

mysql-am:
  enabled: false
nfs-server-provisioner:
  enabled: false

Although, I have disabled these sub-charts, the helm template and helm install commands still request for the presence of these charts within the <CHART_HOME>/charts directory.

The helm template command yields
Error: found in Chart.yaml, but missing in charts/ directory: mysql-am, nfs-server-provisioner

The helm install command yields
Error: found in Chart.yaml, but missing in charts/ directory: mysql-am, nfs-server-provisioner

IMO, this is a critical issue which needs to be fixed immediately. It was noticed that multiple issues associated with it have been posed at the official GitHub repository.

Please see the latest issue posted [1] at the repository regarding this.

Also, please correct me if I have missed anything. Do we have plans on fixing this issue?


Reply all
Reply to author
Forward
0 new messages