feat(modjo-microservice): extraVolumes

This commit is contained in:
devthejo 2023-12-17 00:19:44 +01:00
parent 2616823c2d
commit 3014f5c3f2
Signed by: devthejo
GPG key ID: C04215C627711F5C
2 changed files with 21 additions and 13 deletions

View file

@ -43,9 +43,12 @@ spec:
imagePullSecrets: imagePullSecrets:
{{- toYaml .Values.image.pullSecrets | nindent 8 }} {{- toYaml .Values.image.pullSecrets | nindent 8 }}
volumes: volumes:
- name: jwt - name: jwt
secret: secret:
secretName: {{ .Values.application.jwt.secretName }} secretName: {{ .Values.application.jwt.secretName }}
{{- if .Values.extraVolumes }}
{{- .Values.extraVolumes | toYaml | nindent 8 }}
{{- end }}
containers: containers:
- name: {{ .Chart.Name }} - name: {{ .Chart.Name }}
securityContext: securityContext:
@ -71,16 +74,19 @@ spec:
resources: resources:
{{- toYaml .Values.resources | nindent 12 }} {{- toYaml .Values.resources | nindent 12 }}
volumeMounts: volumeMounts:
{{- if .Values.application.jwt.enabled }} {{- if .Values.application.jwt.enabled }}
- name: jwt - name: jwt
mountPath: /secrets/jwk.json mountPath: /secrets/jwk.json
subPath: {{ .Values.application.jwt.jwkSecretKey }} subPath: {{ .Values.application.jwt.jwkSecretKey }}
readOnly: true readOnly: true
- name: jwt - name: jwt
mountPath: /secrets/jwk-old.json mountPath: /secrets/jwk-old.json
subPath: {{ .Values.application.jwt.jwkOldSecretKey }} subPath: {{ .Values.application.jwt.jwkOldSecretKey }}
readOnly: true readOnly: true
{{- end }} {{- end }}
{{- if .Values.extraVolumeMounts }}
{{- .Values.extraVolumeMounts | toYaml | nindent 12 }}
{{- end }}
env: env:
- name: LOGLEVEL - name: LOGLEVEL
value: {{ .Values.application.logLevel }} value: {{ .Values.application.logLevel }}

View file

@ -39,6 +39,8 @@ application:
jwkOldSecretKey: jwk-old.json jwkOldSecretKey: jwk-old.json
extraEnv: extraEnv:
extraVolumes:
extraVolumeMounts:
commonAnnotations: {} commonAnnotations: {}
commonLabels: {} commonLabels: {}