mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-01-24 16:09:08 +00:00
Merge pull request #66 from dcplaya/media-common
[media-common] Add initContainers
This commit is contained in:
commit
90a691aea0
@ -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.0
|
||||||
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
|
||||||
|
@ -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
|
||||||
*/}}
|
*/}}
|
||||||
|
@ -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 }}
|
||||||
|
@ -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 }}
|
||||||
|
@ -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: []
|
||||||
|
Loading…
Reference in New Issue
Block a user