I'm wondering about the way to override a default value for a dependency chart.
Let's go straight to the point, having this kustomization file for Prometheus:
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
helmCharts:
- name: prometheus
releaseName: prometheus
repo: https://prometheus-community.github.io/helm-charts
version: 23.0.0
namespace: monitoring
I want to define for example the storageClass
value for the alermanager chart which is a dependency of Prometheus chart. This is the folder structure created when try to build the chart.
.
├── charts
│ ├── prometheus
│ │ ├── Chart.lock
│ │ ├── Chart.yaml
│ │ ├── README.md
│ │ ├── charts
│ │ │ ├── alertmanager
│ │ │ │ ├── Chart.yaml
│ │ │ │ ├── README.md
│ │ │ │ ├── ci
│ │ │ │ │ └── config-reload-values.yaml
│ │ │ │ ├── templates
│ │ │ │ │ ├── NOTES.txt
│ │ │ │ │ ├── _helpers.tpl
│ │ │ │ │ ├── configmap.yaml
│ │ │ │ │ ├── ingress.yaml
│ │ │ │ │ ├── pdb.yaml
│ │ │ │ │ ├── serviceaccount.yaml
│ │ │ │ │ ├── services.yaml
│ │ │ │ │ ├── statefulset.yaml
│ │ │ │ │ └── tests
│ │ │ │ │ └── test-connection.yaml
│ │ │ │ ├── values.schema.json
│ │ │ │ └── values.yaml <-- Override a value here
│ │ ├── templates
│ │ │ ├── NOTES.txt
│ │ │ ├── _helpers.tpl
│ │ │ ├── clusterrole.yaml
│ │ │ ├── clusterrolebinding.yaml
│ │ │ ├── cm.yaml
│ │ │ ├── deploy.yaml
│ │ │ ├── extra-manifests.yaml
│ │ │ ├── headless-svc.yaml
│ │ │ ├── ingress.yaml
│ │ │ ├── network-policy.yaml
│ │ │ ├── pdb.yaml
│ │ │ ├── psp.yaml
│ │ │ ├── pvc.yaml
│ │ │ ├── rolebinding.yaml
│ │ │ ├── service.yaml
│ │ │ ├── serviceaccount.yaml
│ │ │ ├── sts.yaml
│ │ │ └── vpa.yaml
│ │ ├── values.schema.json
│ │ └── values.yaml
│ └── prometheus-23.0.0.tgz
└── kustomization.yaml
Question:
How can I override a value in a dependency chart using Kustomize?