Skip to content

help adding item with a list of string into a helm yaml template #1965

Answered by mikefarah
lordigon asked this question in Q&A
Discussion options

You must be logged in to vote

The helm template isn't valid yaml - because of helm template expressions using {{ .. }}. You will need to wrap that in quotes to get a valid yaml file first:

# etc
  template:
    metadata:
      labels:
        control-plane: controller-manager
        name: activemq-artemis-operator
    spec:
      containers:
      - args:
        - --zap-log-level=info
        - --zap-encoder=console
        - --zap-time-encoding=iso8601
        - --leader-elect
        command:
        - /home/activemq-artemis-operator/bin/entrypoint
        env:
        - name: RELATED_IMAGE_ActiveMQ_Artemis_Broker_Init_2150
          value: '{{ include "test.activemqinitbroker.imageName" . }}:0.2.2'
        - name: 

Replies: 1 comment

Comment options

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