From 2c15d6617c7a2cd3178725d145c5dc2ab5594597 Mon Sep 17 00:00:00 2001 From: Drew Date: Fri, 25 Sep 2020 23:33:12 -0700 Subject: [PATCH] [media-common] Add initContainers I think this is all thats needed to get this working --- charts/media-common/Chart.yaml | 2 +- charts/media-common/templates/deployment.yaml | 2 ++ charts/media-common/templates/statefulset.yaml | 2 ++ charts/media-common/values.yaml | 2 ++ 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/charts/media-common/Chart.yaml b/charts/media-common/Chart.yaml index 040fddcb..296c63bc 100644 --- a/charts/media-common/Chart.yaml +++ b/charts/media-common/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: media-common description: Common dependancy chart for media ecosystem containers type: application -version: 1.1.1 +version: 1.2.1 keywords: - media-common home: https://github.com/k8s-at-home/charts/tree/master/charts/media-common diff --git a/charts/media-common/templates/deployment.yaml b/charts/media-common/templates/deployment.yaml index aeb31bfb..36bd4612 100644 --- a/charts/media-common/templates/deployment.yaml +++ b/charts/media-common/templates/deployment.yaml @@ -27,6 +27,8 @@ spec: securityContext: {{- toYaml . | nindent 8 }} {{- end }} + initContainers: + {{- include "media-common.initContainers" . | nindent 8 }} containers: - name: {{ template "media-common.fullname" . }} {{- with .Values.securityContext }} diff --git a/charts/media-common/templates/statefulset.yaml b/charts/media-common/templates/statefulset.yaml index d004b3a0..e51b34ab 100644 --- a/charts/media-common/templates/statefulset.yaml +++ b/charts/media-common/templates/statefulset.yaml @@ -28,6 +28,8 @@ spec: securityContext: {{- toYaml . | nindent 8 }} {{- end }} + initContainers: + {{- include "media-common.initContainers" . | nindent 8 }} containers: - name: {{ template "media-common.fullname" . }} {{- with .Values.securityContext }} diff --git a/charts/media-common/values.yaml b/charts/media-common/values.yaml index 25ce4fc2..e6141dd9 100644 --- a/charts/media-common/values.yaml +++ b/charts/media-common/values.yaml @@ -113,6 +113,8 @@ persistence: ## Do not delete the pvc upon helm uninstall skipuninstall: false +initContainers: [] + additionalContainers: [] additionalVolumes: []