Skip to content

Commit 3a6387a

Browse files
committed
Fixing templates for additionalContainers definitions.
1 parent c17ecec commit 3a6387a

File tree

5 files changed

+13
-10
lines changed

5 files changed

+13
-10
lines changed

charts/apps/piped/Chart.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ sources:
1010
- https://github.com/TeamPiped/piped-proxy
1111
keywords:
1212
- streaming
13-
version: 5.0.2
13+
version: 5.1.0
1414
appVersion: latest
1515
kubeVersion: ">=1.22.0-0"
1616
maintainers:
@@ -28,4 +28,4 @@ dependencies:
2828
annotations:
2929
artifacthub.io/changes: |-
3030
- kind: fixed
31-
description: ytproxy env variable template
31+
description: Pod templates for addionalContainers values.

charts/apps/piped/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# piped
22

3-
![Version: 5.0.2](https://img.shields.io/badge/Version-5.0.2-informational?style=flat-square) ![AppVersion: latest](https://img.shields.io/badge/AppVersion-latest-informational?style=flat-square)
3+
![Version: 5.1.0](https://img.shields.io/badge/Version-5.1.0-informational?style=flat-square) ![AppVersion: latest](https://img.shields.io/badge/AppVersion-latest-informational?style=flat-square)
44

55
Piped is an alternative privacy-friendly YouTube frontend which is efficient by design.
66

@@ -125,4 +125,4 @@ The following table contains an overview of available values and their descripti
125125
</details>
126126

127127
----------------------------------------------
128-
Autogenerated from chart metadata using [helm-docs v1.13.1](https://github.com/norwoodj/helm-docs/releases/v1.13.1)
128+
Autogenerated from chart metadata using [helm-docs v1.13.1](https://github.com/norwoodj/helm-docs/releases/v1.13.1)

charts/apps/piped/templates/backend/lib/_pod.tpl

+3-2
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,10 @@ initContainers:
6262
{{- end }}
6363
containers:
6464
{{- include "backend.controller.mainContainer" . | nindent 2 }}
65-
{{- with .Values.additionalContainers }}
65+
{{- if .Values.backend.additionalContainers }}
6666
{{- $additionalContainers := list }}
67-
{{- range $name, $container := . }}
67+
{{- range $index, $key := (keys .Values.backend.additionalContainers | uniq | sortAlpha) }}
68+
{{- $container := get $.Values.backend.initContainers $key }}
6869
{{- if not $container.name -}}
6970
{{- $_ := set $container "name" $name }}
7071
{{- end }}

charts/apps/piped/templates/frontend/lib/_pod.tpl

+3-2
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,10 @@ initContainers:
6262
{{- end }}
6363
containers:
6464
{{- include "frontend.controller.mainContainer" . | nindent 2 }}
65-
{{- with .Values.additionalContainers }}
65+
{{- if .Values.frontend.additionalContainers }}
6666
{{- $additionalContainers := list }}
67-
{{- range $name, $container := . }}
67+
{{- range $index, $key := (keys .Values.frontend.additionalContainers | uniq | sortAlpha) }}
68+
{{- $container := get $.Values.frontend.additionalContainers $key }}
6869
{{- if not $container.name -}}
6970
{{- $_ := set $container "name" $name }}
7071
{{- end }}

charts/apps/piped/templates/ytproxy/lib/_pod.tpl

+3-2
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,10 @@ initContainers:
6262
{{- end }}
6363
containers:
6464
{{- include "ytproxy.controller.mainContainer" . | nindent 2 }}
65-
{{- with .Values.additionalContainers }}
65+
{{- if .Values.ytproxy.additionalContainers }}
6666
{{- $additionalContainers := list }}
67-
{{- range $name, $container := . }}
67+
{{- range $index, $key := (keys .Values.ytproxy.additionalContainers | uniq | sortAlpha) }}
68+
{{- $container := get $.Values.ytproxy.additionalContainers $key }}
6869
{{- if not $container.name -}}
6970
{{- $_ := set $container "name" $name }}
7071
{{- end }}

0 commit comments

Comments
 (0)