You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The [mychart](./mychart/) chart contains a simple pattern that you can use to enforce a minimum version of the Helm client for any chart.
4
+
5
+
1. Add `annotations.minimumHelmVersion` to your `Chart.yaml`. For example:
6
+
7
+
```yaml
8
+
apiVersion: v2
9
+
name: mychart
10
+
version: 0.1.0
11
+
annotations:
12
+
minimumHelmVersion: 3.18.2
13
+
```
14
+
_See [mychart/Chart.yaml](./mychart/Chart.yaml)._
15
+
1. Add a helper function to your chart's `templates/_helpers.tpl` file, like the `mychart.validateHelmVersion` function below. Replace `mychart` with the name of your chart.
1. Include your helper function at the top of any template. Make sure this include statement is outside of any rendering conditional logic if you want to always enfore the minimum Helm version.
0 commit comments