Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-33066

Enable to inject environment variable from secret/configmap to operatorPod

    XMLWordPrintableJSON

Details

    Description

      Hello, I've been working with the Flink Kubernetes operator and noticed that the operatorPod.env only allows for simple key-value pairs and doesn't support Kubernetes valueFrom syntax.

      How about changing template to support more various k8s syntax? 

      Current template

      {{- range $k, $v := .Values.operatorPod.env }}
        - name: {{ $v.name | quote }}
          value: {{ $v.value | quote }}
      {{- end }}

       

      Proposed template
      1) Modify template like below 

      {{- with .Values.operatorPod.env }} 
      {{- toYaml . | nindent 12 }} 
      {{- end }} 
      

      2) create extra config, Values.operatorPod.envFrom and utilize this

       

      I'd be happy to implement this update if it's approved.
      Thanks in advance.

      Attachments

        Issue Links

          Activity

            People

              dongwoo.kim dongwoo.kim
              dongwoo.kim dongwoo.kim
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: