Enable helm chart usage of hostAliases and extraContainers concurrently
Bug
Content of extraContainers is listed below/inside pod.spec.hostAlias[] array instead of in the pod.spec.containers[] array.
Bug created by but only manifests if both options are used at the same time.
@@ -298,13 +298,13 @@ spec:
{{- end }}
resources:
{{ toYaml .Values.resources | indent 12 }}
+{{- if .Values.extraContainers }}
+{{ toYaml .Values.extraContainers | indent 8}}
+{{- end }}
{{- if .Values.hostAliases }}
hostAliases:
{{ toYaml .Values.hostAliases |indent 8 }}
{{- end }}
-{{- if .Values.extraContainers }}
-{{ toYaml .Values.extraContainers | indent 8}}
-{{- end }}
{{- if .Values.dnsPolicy }}
dnsPolicy: {{ .Values.dnsPolicy }}
{{- end }}
