inject env with helm values

Signed-off-by: Roland.Ma <rolandma@yunify.com>
This commit is contained in:
Roland.Ma
2021-07-30 02:10:46 +00:00
parent 4c16276a8d
commit 14adfc4326
3 changed files with 9 additions and 0 deletions

View File

@@ -49,6 +49,10 @@ spec:
name: kubesphere-config
- mountPath: /etc/localtime
name: host-time
env:
{{- if .Values.env }}
{{- toYaml .Values.env | nindent 8 }}
{{- end }}
livenessProbe:
failureThreshold: 8
httpGet:

View File

@@ -52,6 +52,10 @@ spec:
name: webhook-secret
- mountPath: /etc/localtime
name: host-time
env:
{{- if .Values.env }}
{{- toYaml .Values.env | nindent 8 }}
{{- end }}
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler

View File

@@ -116,3 +116,4 @@ tolerations:
tolerationSeconds: 60
affinity: {}
env: []