added possibility to use an existing secret for deployment
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-10-25 21:15:38 +02:00
parent aec384c78e
commit 11fb42769c
5 changed files with 150 additions and 5 deletions

View File

@ -33,10 +33,15 @@ spec:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- with .Values.env }}
env:
{{- with .Values.env }}
{{- . | toYaml | trim | nindent 12 }}
{{- end }}
{{- if .Values.externalConfigSecret.enabled }}
envFrom:
- secretRef:
name: {{ .Values.externalConfigSecret.name }}
{{- end }}
ports:
- name: http
containerPort: 8080