charts icon indicating copy to clipboard operation
charts copied to clipboard

feat: allow tpl func in env for alpha init container

Open t3mi opened this issue 2 years ago • 1 comments

Gives opportunity to refer to the chart internals if needed, .e.g. using the following input

alpha:
  initContainers:
    init:
      enabled: true
      env:
        - name: "RELEASE_NAME"
          value: "{{ .Release.Name }}"
        - name: "ZERO_SVC"
          value: "{{ template \"dgraph.zero.fullname\" . }}"

produces the output of

    initContainers:
      - name: release-name-dgraph-alpha-init
        image: docker.io/dgraph/dgraph:v23.0.1
        imagePullPolicy: "IfNotPresent"
        env:
          - name: RELEASE_NAME
            value: 'release-name'
          - name: ZERO_SVC
            value: 'release-name-dgraph-zero'

This change is Reviewable

t3mi avatar Oct 10 '23 10:10 t3mi

This PR has been stale for 60 days and will be closed automatically in 7 days. Comment to keep it open.

github-actions[bot] avatar Jul 11 '24 01:07 github-actions[bot]