mirror of
https://github.com/TeamPiped/Piped-Kubernetes.git
synced 2024-08-14 23:57:15 +00:00
Fixing templates for additionalContainers definitions.
This commit is contained in:
parent
c17ececc3f
commit
3a6387a9bf
5 changed files with 13 additions and 10 deletions
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue