fix: ref ConfigMap and Secret to Deployment
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-02-28 22:06:33 +03:00
parent 4b91bc4ca1
commit ee920b798a

View File

@ -13,8 +13,10 @@ spec:
{{- include "hedgedoc.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
checksum/secret: {{ include (print $.Template.BasePath "/secrets.yaml") . | sha256sum }}
{{- with .Values.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
@ -33,6 +35,16 @@ spec:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.registry}}/{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
envFrom:
- configMapRef:
name: {{ include "hedgedoc.fullname" . }}
{{- if .Values.existingSecret }}
- secretRef:
name: {{ .Values.existingSecret }}
{{- else }}
- secretRef:
name: {{ include "hedgedoc.fullname" . }}
{{- end }}
ports:
- name: http
containerPort: {{ .Values.service.port }}