mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-01-24 16:09:08 +00:00
[media-common] Wrap in conditional statement
Had a feeling I needed this!
This commit is contained in:
parent
374b098436
commit
3ee806f563
@ -27,8 +27,10 @@ spec:
|
|||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- with .Values.initContainers }}
|
||||||
initContainers:
|
initContainers:
|
||||||
{{- include "media-common.initContainers" . | nindent 8 }}
|
{{- 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,8 +28,10 @@ spec:
|
|||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- with .Values.initContainers }}
|
||||||
initContainers:
|
initContainers:
|
||||||
{{- include "media-common.initContainers" . | nindent 8 }}
|
{{- 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 }}
|
||||||
|
Loading…
Reference in New Issue
Block a user