Skip to content

Commit 25c878d

Browse files
committed
feat: Allow extra environment variables for helm deployment
Signed-off-by: Lennart van Koot <lennartvkoot@gmail.com>
1 parent 36f61ac commit 25c878d

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

chart/dapr-dashboard/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,5 @@ helm install dapr-dashboard dapr/dapr-dashboard
3939
| `tolerations` | Pods will be allowed to schedule onto a node whose taints match the tolerations | `{}` |
4040
| `labels` | Custom pod labels | `{}` |
4141
| `k8sLabels` | Custom metadata labels | `{}` |
42-
| `rbac.namespaced` | Removes cluster wide permissions where applicable | `false` |
42+
| `rbac.namespaced` | Removes cluster wide permissions where applicable | `false` |
43+
| `extraEnv` | Additional environment variables to pass to the dapr-dashboard container | `[]` |

chart/dapr-dashboard/templates/dapr_dashboard_deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ spec:
6363
valueFrom:
6464
fieldRef:
6565
fieldPath: metadata.namespace
66+
{{- with .Values.extraEnv }}
67+
{{- toYaml . | nindent 8 }}
68+
{{- end }}
6669
ports:
6770
- containerPort: 8080
6871
resources:

chart/dapr-dashboard/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,5 @@ k8sLabels:
5050
app.kubernetes.io/version: "{{ .Values.image.tag }}"
5151
app.kubernetes.io/part-of: "dapr"
5252
app.kubernetes.io/managed-by: "helm"
53+
54+
extraEnv: []

0 commit comments

Comments
 (0)