Skip to content

Commit 7e32008

Browse files
authored
🔧 Allow binary arguments via helm chart (#201)
This commit allows to pass arguments to the helm chart. This is useful if you want to specify arguments for the helm-dashboard binary whilst deploying via helm.
1 parent 23cfd2d commit 7e32008

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

‎charts/helm-dashboard/README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ The following table lists the configurable parameters of the chart and their def
7373
| `dashboard.persistence.size` | Persistent Volume size | `100M` |
7474
| `dashboard.persistence.hostPath` | Set path in case you want to use local host path volumes (not recommended in production) | `""`
7575
| `updateStrategy.type` | Set up update strategy for helm-dashboard installation. | `RollingUpdate` |
76+
| `extraArgs` | Set the arguments to be supplied to the helm-dashboard binary | `[--no-browser, --bind=0.0.0.0]`
7677

7778
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`.
7879

‎charts/helm-dashboard/templates/deployment.yaml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ spec:
3030
{{- toYaml .Values.podSecurityContext | nindent 8 }}
3131
containers:
3232
- name: {{ .Chart.Name }}
33+
command:
34+
- /bin/helm-dashboard
35+
args:
36+
{{- with .Values.extraArgs }}
37+
{{- toYaml . | nindent 12 }}
38+
{{- end }}
3339
securityContext:
3440
{{- toYaml .Values.securityContext | nindent 12 }}
3541
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"

‎charts/helm-dashboard/values.yaml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ autoscaling:
111111

112112
nodeSelector: {}
113113

114+
extraArgs:
115+
- --no-browser
116+
- --bind=0.0.0.0
117+
114118
tolerations: []
115119

116120
affinity: {}

0 commit comments

Comments
 (0)