[ 
https://issues.apache.org/jira/browse/FLINK-33066?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17763887#comment-17763887
 ] 

Gyula Fora commented on FLINK-33066:
------------------------------------

I think this would be a nice improvement :) 

> Enable to inject environment variable from secret/configmap to operatorPod
> --------------------------------------------------------------------------
>
>                 Key: FLINK-33066
>                 URL: https://issues.apache.org/jira/browse/FLINK-33066
>             Project: Flink
>          Issue Type: Improvement
>          Components: Kubernetes Operator
>            Reporter: dongwoo.kim
>            Priority: Minor
>
> 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*
> {code:java}
> {{- range $k, $v := .Values.operatorPod.env }}
>   - name: {{ $v.name | quote }}
>     value: {{ $v.value | quote }}
> {{- end }}{code}
>  
> *Proposed template*
> 1) Modify template like below 
> {code:java}
> {{- with .Values.operatorPod.env }} 
> {{- toYaml . | nindent 12 }} 
> {{- end }} 
> {code}
> 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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to