Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow tpl func in env for alpha init container #110

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

t3mi
Copy link

@t3mi t3mi commented Oct 10, 2023

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

Signed-off-by: t3mi <t3mi@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant