Skip to content
Discussion options

You must be logged in to vote

In case anyone is interested in this.
I created an ExternalSecret that contains docker.username and docker.password. This is read by the _pod_helpers method and added as ENV vars to the container. In the values.yaml file those two variables need to be set with dummy values to be templated by Helm.

{{- if .Values.docker.username }}
  - name: VERSION_CHECKER_DOCKER_USERNAME
    valueFrom:
      secretKeyRef:
        name: {{ $chartname }}
        key: docker.username
  {{- end }}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by michizubi-SRF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant