fix: Update environment variable templating for backend and frontend init-containers (#141)

Fixes #109
This commit is contained in:
Skyler Mäntysaari 2025-03-29 12:49:24 +02:00 committed by GitHub
parent 4149d62052
commit 7ef0f91785
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 5 deletions

View File

@ -10,7 +10,7 @@ sources:
- https://github.com/TeamPiped/piped-proxy
keywords:
- streaming
version: 7.2.4
version: 7.3.0
appVersion: latest
kubeVersion: ">=1.26.0-0"
maintainers:
@ -27,5 +27,7 @@ dependencies:
condition: postgresql.enabled
annotations:
artifacthub.io/changes: |-
- kind: changed
description: Updated image for `ytproxy` from latest@sha256:880b1117b6087e32b82c0204a96210fb87de61a874a3a2681361cc6d905e4d0e to latest@sha256:53575a0aa0f5ea81f66f6f43d4c74333559efd62c99c21588dfee0aacbab2265
- kind: fixed
description: templating of environment variables for backend init-containers.
- kind: fixed
description: templating of environment variables for frontend init-containers.

View File

@ -52,7 +52,7 @@ initContainers:
{{- end }}
{{- if $container.env -}}
{{- $_ := set $ "ObjectValues" (dict "env" $container.env) -}}
{{- $newEnv := fromYaml (include "common.controller.env_vars" $) -}}
{{- $newEnv := fromYaml (include "backend.controller.env_vars" $) -}}
{{- $_ := unset $.ObjectValues "env" -}}
{{- $_ := set $container "env" $newEnv.env }}
{{- end }}

View File

@ -52,7 +52,7 @@ initContainers:
{{- end }}
{{- if $container.env -}}
{{- $_ := set $ "ObjectValues" (dict "env" $container.env) -}}
{{- $newEnv := fromYaml (include "common.controller.env_vars" $) -}}
{{- $newEnv := fromYaml (include "frontend.controller.env_vars" $) -}}
{{- $_ := unset $.ObjectValues "env" -}}
{{- $_ := set $container "env" $newEnv.env }}
{{- end }}