@@ -96,44 +96,33 @@ spec:
9696 protocol : {{ default "TCP" $port.protocol }}
9797{{- end }}
9898{{- end }}
99- {{- if or .Values.deployment.pod.volumeMounts .Values.persistence.enabled .Values.configMaps.enabled .Values.secrets.enabled }}
10099 volumeMounts :
101- {{- if .Values.deployment.pod.volumeMounts }}
102- {{- toYaml .Values.deployment.pod.volumeMounts | nindent 8 }}
103- {{- end }}
104100 {{- if .Values.persistence.enabled }}
105101 - mountPath : {{ .Values.persistence.mountPath | quote }}
106102 name : storage
107103 {{- end }}
108104 {{- include "monochart.files.volumeMounts" . | nindent 8 }}
109- {{- end }}
110105{{- with .Values.probes }}
111106{{ toYaml . | indent 8 }}
112107{{- end }}
113108{{- with .Values.resources }}
114109 resources :
115110{{ toYaml . | indent 10 }}
116111{{- end }}
117- {{- with .Values.deployment.pod.hostAliases }}
112+ {{- with .Values.deployment.pod.hostAliases }}
118113 hostAliases :
119- {{- toYaml . | indent 8 }}
120- {{- end }}
121- {{- if or .Values.dockercfg.enabled .Values.image.pullSecrets }}
114+ {{ toYaml . | indent 8 }}
115+ {{- end }}
122116 imagePullSecrets :
123- {{- end }}
124- {{- if .Values.dockercfg.enabled }}
117+ {{- if .Values.dockercfg.enabled }}
125118 - name : {{ include "common.fullname" . }}
126- {{- end }}
127- {{- with .Values.image.pullSecrets }}
119+ {{- end }}
120+ {{- with .Values.image.pullSecrets }}
128121 {{- range . }}
129122 - name : {{ . }}
130123 {{- end }}
131- {{- end }}
132- {{- if or .Values.deployment.volumes .Values.persistence.enabled .Values.configMaps.enabled .Values.secrets.enabled }}
124+ {{- end }}
133125 volumes :
134- {{- if .Values.deployment.volumes }}
135- {{- toYaml .Values.deployment.volumes | nindent 6 }}
136- {{- end }}
137126 {{- if .Values.persistence.enabled }}
138127 - name : storage
139128 {{- if .Values.persistence.enabled }}
@@ -144,6 +133,4 @@ spec:
144133 {{- end }}
145134 {{- end }}
146135 {{- include "monochart.files.volumes" . | nindent 6 }}
147- {{- end }}
148-
149136{{- end -}}
0 commit comments