Skip to content

Commit

Permalink
Fixing templates for additionalContainers definitions.
Browse files Browse the repository at this point in the history
samip5 committed Apr 5, 2024
1 parent c17ecec commit 3a6387a
Showing 5 changed files with 13 additions and 10 deletions.
4 changes: 2 additions & 2 deletions charts/apps/piped/Chart.yaml
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ sources:
- https://github.com/TeamPiped/piped-proxy
keywords:
- streaming
version: 5.0.2
version: 5.1.0
appVersion: latest
kubeVersion: ">=1.22.0-0"
maintainers:
@@ -28,4 +28,4 @@ dependencies:
annotations:
artifacthub.io/changes: |-
- kind: fixed
description: ytproxy env variable template
description: Pod templates for addionalContainers values.
4 changes: 2 additions & 2 deletions charts/apps/piped/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# piped

![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)
![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)

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

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

----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.13.1](https://github.com/norwoodj/helm-docs/releases/v1.13.1)
Autogenerated from chart metadata using [helm-docs v1.13.1](https://github.com/norwoodj/helm-docs/releases/v1.13.1)
5 changes: 3 additions & 2 deletions charts/apps/piped/templates/backend/lib/_pod.tpl
Original file line number Diff line number Diff line change
@@ -62,9 +62,10 @@ initContainers:
{{- end }}
containers:
{{- include "backend.controller.mainContainer" . | nindent 2 }}
{{- with .Values.additionalContainers }}
{{- if .Values.backend.additionalContainers }}
{{- $additionalContainers := list }}
{{- range $name, $container := . }}
{{- range $index, $key := (keys .Values.backend.additionalContainers | uniq | sortAlpha) }}
{{- $container := get $.Values.backend.initContainers $key }}
{{- if not $container.name -}}
{{- $_ := set $container "name" $name }}
{{- end }}
5 changes: 3 additions & 2 deletions charts/apps/piped/templates/frontend/lib/_pod.tpl
Original file line number Diff line number Diff line change
@@ -62,9 +62,10 @@ initContainers:
{{- end }}
containers:
{{- include "frontend.controller.mainContainer" . | nindent 2 }}
{{- with .Values.additionalContainers }}
{{- if .Values.frontend.additionalContainers }}
{{- $additionalContainers := list }}
{{- range $name, $container := . }}
{{- range $index, $key := (keys .Values.frontend.additionalContainers | uniq | sortAlpha) }}
{{- $container := get $.Values.frontend.additionalContainers $key }}
{{- if not $container.name -}}
{{- $_ := set $container "name" $name }}
{{- end }}
5 changes: 3 additions & 2 deletions charts/apps/piped/templates/ytproxy/lib/_pod.tpl
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 3a6387a

Please sign in to comment.