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
Copy file name to clipboardExpand all lines: stable/helm/README.md
+48-20Lines changed: 48 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,18 @@ Use Codefresh [Helm](https://helm.sh) plugin to deploy a Helm chart into specifi
6
6
7
7
Set required and optional environment variable and add the following step to your Codefresh pipeline:
8
8
9
+
Example Variables:
10
+
11
+
The example below will run `helm upgrade` using Helm chart with the name `mychart` located in `https://helmrepo.codefresh.io/codefresh/helm` Helm chart repository using the `myrelease` Helm release name against `mycluster` Kubernetes cluster in the `mynamespace` Kubernetes Namespace.
Prefix environment variable with `custom_` (or `CUSTOM_`) and replace any `.` character with `_`.
63
+
To supply value file, add an environment variable with the name prefix of `CUSTOMFILE_` (case *in*sensitive), and the value should point to an existing values file.
64
+
To override specific values, add an environment variable with the name prefix of `CUSTOM_` (case *in*sensitive), and replace any `.` characters in the name with `_`. The value should be the value for the variable.
44
65
66
+
Examples:
45
67
```text
46
-
# set ENV variable in Codefresh UI
47
-
custom_myimage_pullPolicy=Always
68
+
CUSTOM_myimage_pullPolicy=Always
48
69
# Codefresh Helm plugin will add option below to the 'helm update --install' command
49
70
--set myimage.pullPolicy=Always
50
71
51
-
# Another example
52
-
CUSTOM_redis_resources_requests_memory=256Mi
72
+
CUSTOMFILE_prod='values-prod.yaml'
73
+
# Codefresh Helm plugin will add option below to the 'helm update --install' command
74
+
--values values-prod.yaml
75
+
```
76
+
77
+
If a variable contains a `_`, replace the `_` character with `__`.
0 commit comments