You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by mb...@apache.org on 2022/06/28 13:44:58 UTC

[flink-kubernetes-operator] branch main updated: [FLINK-28225] Add custom env supports in the Helm chart

This is an automated email from the ASF dual-hosted git repository.

mbalassi pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/flink-kubernetes-operator.git


The following commit(s) were added to refs/heads/main by this push:
     new 1937653  [FLINK-28225] Add custom env supports in the Helm chart
1937653 is described below

commit 1937653a5b51c62f7a420f314596be1cf387a57b
Author: Xin Hao <ha...@gmail.com>
AuthorDate: Tue Jun 28 21:44:52 2022 +0800

    [FLINK-28225] Add custom env supports in the Helm chart
---
 helm/flink-kubernetes-operator/templates/flink-operator.yaml | 4 ++++
 helm/flink-kubernetes-operator/values.yaml                   | 7 +++++--
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/helm/flink-kubernetes-operator/templates/flink-operator.yaml b/helm/flink-kubernetes-operator/templates/flink-operator.yaml
index 1591271..5494f3b 100644
--- a/helm/flink-kubernetes-operator/templates/flink-operator.yaml
+++ b/helm/flink-kubernetes-operator/templates/flink-operator.yaml
@@ -78,6 +78,10 @@ spec:
               value: -Dlog4j.configurationFile=/opt/flink/conf/log4j-operator.properties
             - name: JVM_ARGS
               value: {{ .Values.jvmArgs.operator }}
+            {{- range $k, $v := .Values.operatorPod.env }}
+            - name: {{ $v.name }}
+              value: {{ $v.value }}
+            {{- end }}
           securityContext:
             {{- toYaml .Values.operatorSecurityContext | nindent 12 }}
           volumeMounts:
diff --git a/helm/flink-kubernetes-operator/values.yaml b/helm/flink-kubernetes-operator/values.yaml
index 0cd53b5..0240669 100644
--- a/helm/flink-kubernetes-operator/values.yaml
+++ b/helm/flink-kubernetes-operator/values.yaml
@@ -31,8 +31,11 @@ rbac:
   create: true
 
 operatorPod:
-   annotations: {}
-   labels: {}
+  annotations: {}
+  labels: {}
+  env:
+  # - name: ""
+  #   value: ""
 
 operatorServiceAccount:
   create: true