Commit e116f76
committed
These changes to the
Previously, the volume mount was unconditionally included in the deployment template. This update moves the `volumeMounts` section under a conditional block controlled by the `Values.volumeMounts` setting. If this setting is defined (and evaluates to a truthy value in the template rendering), then the `config-volume` mount, along with any other mounts defined in `Values.volumeMounts`, will be included in the deployment. If `Values.volumeMounts` isn't defined or is falsy, the `config-volume` mount will be omitted.
The `Chart.yaml` file is also updated, bumping the chart version from 0.0.4 to 0.0.5, reflecting this change. This is standard practice for Helm charts to track changes.
In essence, this change provides more flexibility in deployments. Users can now choose whether or not to mount the `config-volume` based on their needs by setting the `Values.volumeMounts` parameter during helm install or upgrade. This is useful for scenarios where configuration might be provided through other means, like ConfigMaps or environment variables, and mounting a specific volume is not always desired.shoebox-helm chart appear to conditionally enable mounting a volume named config-volume at /app/config within the deployed container.1 parent 092353e commit e116f76
2 files changed
+3
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | 24 | | |
28 | 25 | | |
29 | 26 | | |
| |||
39 | 36 | | |
40 | 37 | | |
41 | 38 | | |
| 39 | + | |
| 40 | + | |
42 | 41 | | |
43 | 42 | | |
44 | 43 | | |
| |||
0 commit comments