Użyj tajnej zmiennej środowiska w steru

you cant pass pass Variables from any template to values.yaml with helm. Just from values.yaml to the templates.

The answer you are seeking was posted by mehowthe :

deployment.yaml =

      env:          
        {{- range .Values.env }}
      - name: {{ .name }}
        value: {{ .value }}
     {{- end }}
values.yaml =

env:          
 - name: "DBUser"
   value: ""
 - name: "DBPassword"
   value: ""
then

helm install chart_name --name release_name --set env.DBUser="FOO" --set env.DBPassword="BAR"
DreamCoder