Skip to content

Commit d75e86e

Browse files
committed
add option to set container environment variables
1 parent 6bcb090 commit d75e86e

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

proxysql/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
apiVersion: v1
33
name: proxysql
44
description: ProxySQL Configuration
5-
version: 0.1.7
5+
version: 0.1.8

proxysql/templates/daemonset.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ spec:
4949
- name: {{ .Values.name }}
5050
mountPath: {{ .Values.daemonset.containers.volumeMounts.proxysql.mountPath }}
5151
subPath: {{ .Values.daemonset.containers.volumeMounts.proxysql.subPath }}
52+
env:
53+
{{- range $key, $value := .Values.daemonset.containers.env }}
54+
- name: {{ $key }}
55+
value: {{ $value | quote }}
56+
{{- end }}
5257
volumes:
5358
- name: {{ .Values.name }}
5459
configMap:

proxysql/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ daemonset:
4848
proxysql:
4949
mountPath: "/etc/proxysql.cnf"
5050
subPath: "proxysql.cnf"
51+
env: {}
5152
volumes:
5253
proxysql:
5354
configmap: "proxysql"

0 commit comments

Comments
 (0)