Commit ffb39949 authored by Will JALLET's avatar Will JALLET 💸

inject envars from secrets

parent 17811550
Pipeline #4538 failed with stage
in 7 seconds
description: La charte de référence pour déployer des applications web sur le cluster.
name: sites-binets
version: v0.1.6
version: v0.2.0
kubeVersion: '>=1.9.0-0'
icon: file://Logo_Binet_Reseau.png
maintainers:
......
......@@ -28,11 +28,19 @@ spec:
protocol: TCP
{{- if .Values.env }}
env:
{{- range $key, $val := .Values.env }}
{{- if or $.Values.env $.Values.envSecrets }}
{{- range $key, $value := $.Values.env }}
- name: {{ $key }}
value: {{ $val | quote }}
{{- end}}
{{- end}}
value: {{ $value | quote }}
{{- end }}
{{- range $key, $secret := $.Values.envSecrets }}
- name: {{ $key }}
valueFrom:
secretKeyRef:
name: {{ $secret }}
key: {{ $key | quote }}
{{- end }}
{{- end }}
restartPolicy: Always
{{- if .Values.image.pullSecrets }}
imagePullSecrets:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment