Merge branch 'master' into bug/media-common

This commit is contained in:
Nicholas St. Germain 2020-09-26 22:36:41 -05:00 committed by GitHub
commit b237726244
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 0 deletions

View File

@ -51,6 +51,15 @@ app.kubernetes.io/name: {{ include "media-common.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }} {{- end }}
{{/*
Init Containers
*/}}
{{- define "media-common.initContainers" -}}
{{- if .Values.initContainers }}
{{- toYaml .Values.initContainers }}
{{- end }}
{{- end -}}
{{/* {{/*
Additional Containers Additional Containers
*/}} */}}

View File

@ -27,6 +27,10 @@ spec:
securityContext: securityContext:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}
{{- end }} {{- end }}
{{- with .Values.initContainers }}
initContainers:
{{- include "media-common.initContainers" . | nindent 8 }}
{{- end }}
containers: containers:
- name: {{ template "media-common.fullname" . }} - name: {{ template "media-common.fullname" . }}
{{- with .Values.securityContext }} {{- with .Values.securityContext }}

View File

@ -28,6 +28,10 @@ spec:
securityContext: securityContext:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}
{{- end }} {{- end }}
{{- with .Values.initContainers }}
initContainers:
{{- include "media-common.initContainers" . | nindent 8 }}
{{- end }}
containers: containers:
- name: {{ template "media-common.fullname" . }} - name: {{ template "media-common.fullname" . }}
{{- with .Values.securityContext }} {{- with .Values.securityContext }}

View File

@ -117,6 +117,8 @@ persistence:
## Do not delete the pvc upon helm uninstall ## Do not delete the pvc upon helm uninstall
skipuninstall: false skipuninstall: false
initContainers: []
additionalContainers: [] additionalContainers: []
additionalVolumes: [] additionalVolumes: []