TeamPiped / Piped-Kubernetes

GNU Affero General Public License v3.0
7 stars 6 forks source link

Error when setting initContainers with env vars #109

Open Jahn16 opened 1 month ago

Jahn16 commented 1 month ago

Helm chart version

6.0.4

Container name

1337kavin/piped

Container tag

latest

Description

When trying to add initiContainers with env vars in the backend controller, it raises template error

Error: template: piped/templates/backend/deployment.yaml:47:10: executing "piped/templates/backend/deployment.yaml" at <include "backend.controller.pod" .>: error calling include: template: piped/templates/backend/lib/_pod.tpl:55:33: executing "backend.controller.pod" at <include "common.controller.env_vars" $>: error calling include: template: no template "common.controller.env_vars" associated with template "gotpl"

Expected result

The helm chart to render correctly

Helm values to reproduce

backend:
  initContainers:
    foo:
      env:
        foo: bar

Additional Information

No response

Repo link

No response

samip5 commented 1 week ago

Thanks for reporting, I think this is one of the use cases that I hadn't tried..