[media-common] Add initContainers

I think this is all thats needed to get this working
This commit is contained in:
Drew 2020-09-25 23:33:12 -07:00
parent aca509001d
commit 2c15d6617c
4 changed files with 7 additions and 1 deletions

View File

@ -2,7 +2,7 @@ apiVersion: v2
name: media-common name: media-common
description: Common dependancy chart for media ecosystem containers description: Common dependancy chart for media ecosystem containers
type: application type: application
version: 1.1.1 version: 1.2.1
keywords: keywords:
- media-common - media-common
home: https://github.com/k8s-at-home/charts/tree/master/charts/media-common home: https://github.com/k8s-at-home/charts/tree/master/charts/media-common

View File

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

View File

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

View File

@ -113,6 +113,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: []