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/21 15:24:53 UTC

[flink-kubernetes-operator] branch main updated: [FLINK-27788] Adding annotation to k8 operator Pod

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 91753ec  [FLINK-27788] Adding annotation to k8 operator Pod
91753ec is described below

commit 91753ec5cef1aef85ff3884197e75fa25f7f6625
Author: zeus1ammon <45...@users.noreply.github.com>
AuthorDate: Tue Jun 21 11:24:49 2022 -0400

    [FLINK-27788] Adding annotation to k8 operator Pod
---
 helm/flink-kubernetes-operator/templates/flink-operator.yaml | 5 +++++
 helm/flink-kubernetes-operator/values.yaml                   | 3 +++
 2 files changed, 8 insertions(+)

diff --git a/helm/flink-kubernetes-operator/templates/flink-operator.yaml b/helm/flink-kubernetes-operator/templates/flink-operator.yaml
index fc4e699..a416dea 100644
--- a/helm/flink-kubernetes-operator/templates/flink-operator.yaml
+++ b/helm/flink-kubernetes-operator/templates/flink-operator.yaml
@@ -36,6 +36,11 @@ spec:
         {{- include "flink-operator.selectorLabels" . | nindent 8 }}
       annotations:
         kubectl.kubernetes.io/default-container: {{ .Chart.Name }}
+       {{- if index (.Values.operatorPod) "annotations" }}
+        {{- with .Values.operatorPod.annotations }}
+          {{- toYaml . | nindent 8 }}
+        {{- end }}
+       {{- end }}
     spec:
       securityContext:
         {{- toYaml .Values.podSecurityContext | nindent 8 }}
diff --git a/helm/flink-kubernetes-operator/values.yaml b/helm/flink-kubernetes-operator/values.yaml
index 23b9da6..b29f901 100644
--- a/helm/flink-kubernetes-operator/values.yaml
+++ b/helm/flink-kubernetes-operator/values.yaml
@@ -30,6 +30,9 @@ image:
 rbac:
   create: true
 
+operatorPod:
+   annotations: {}
+
 operatorServiceAccount:
   create: true
   annotations: {}