Fixing templates for additionalContainers definitions.

This commit is contained in:
Skyler Mäntysaari 2024-04-05 08:08:46 +03:00
parent c17ececc3f
commit 3a6387a9bf
5 changed files with 13 additions and 10 deletions

View file

@ -62,9 +62,10 @@ initContainers:
{{- end }}
containers:
{{- include "ytproxy.controller.mainContainer" . | nindent 2 }}
{{- with .Values.additionalContainers }}
{{- if .Values.ytproxy.additionalContainers }}
{{- $additionalContainers := list }}
{{- range $name, $container := . }}
{{- range $index, $key := (keys .Values.ytproxy.additionalContainers | uniq | sortAlpha) }}
{{- $container := get $.Values.ytproxy.additionalContainers $key }}
{{- if not $container.name -}}
{{- $_ := set $container "name" $name }}
{{- end }}