This is an automated email from the ASF dual-hosted git repository.
gyfora 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 74fc8d25 [FLINK-35402][helm] Add labels to metadata
74fc8d25 is described below
commit 74fc8d25d8bd8b522c890e01bd2e711e59eeeb4f
Author: luismacosta <92...@users.noreply.github.com>
AuthorDate: Tue Jun 11 07:43:38 2024 +0100
[FLINK-35402][helm] Add labels to metadata
---
docs/content.zh/docs/operations/helm.md | 2 +-
docs/content/docs/operations/helm.md | 2 +-
helm/flink-kubernetes-operator/templates/flink-operator.yaml | 5 +++++
3 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/docs/content.zh/docs/operations/helm.md b/docs/content.zh/docs/operations/helm.md
index 12425a12..54adfde0 100644
--- a/docs/content.zh/docs/operations/helm.md
+++ b/docs/content.zh/docs/operations/helm.md
@@ -76,7 +76,7 @@ The configurable parameters of the Helm chart and which default values as detail
| rbac.create | Whether to enable RBAC to create for said namespaces. | true [...]
| rbac.nodesRule.create | Whether to add RBAC rule to list nodes which is needed for rest-service exposed as NodePort type. | false [...]
| operatorPod.annotations | Custom annotations to be added to the operator pod (but not the deployment). | [...]
-| operatorPod.labels | Custom labels to be added to the operator pod (but not the deployment). | [...]
+| operatorPod.labels | Custom labels to be added to the operator pod and deployment. | |
| operatorPod.env | Custom env to be added to the operator pod. | [...]
| operatorPod.envFrom | Custom envFrom settings to be added to the operator pod. | [...]
| operatorPod.dnsPolicy | DNS policy to be used by the operator pod. | [...]
diff --git a/docs/content/docs/operations/helm.md b/docs/content/docs/operations/helm.md
index 12425a12..54adfde0 100644
--- a/docs/content/docs/operations/helm.md
+++ b/docs/content/docs/operations/helm.md
@@ -76,7 +76,7 @@ The configurable parameters of the Helm chart and which default values as detail
| rbac.create | Whether to enable RBAC to create for said namespaces. | true [...]
| rbac.nodesRule.create | Whether to add RBAC rule to list nodes which is needed for rest-service exposed as NodePort type. | false [...]
| operatorPod.annotations | Custom annotations to be added to the operator pod (but not the deployment). | [...]
-| operatorPod.labels | Custom labels to be added to the operator pod (but not the deployment). | [...]
+| operatorPod.labels | Custom labels to be added to the operator pod and deployment. | |
| operatorPod.env | Custom env to be added to the operator pod. | [...]
| operatorPod.envFrom | Custom envFrom settings to be added to the operator pod. | [...]
| operatorPod.dnsPolicy | DNS policy to be used by the operator pod. | [...]
diff --git a/helm/flink-kubernetes-operator/templates/flink-operator.yaml b/helm/flink-kubernetes-operator/templates/flink-operator.yaml
index 69e1f8f8..87a3e802 100644
--- a/helm/flink-kubernetes-operator/templates/flink-operator.yaml
+++ b/helm/flink-kubernetes-operator/templates/flink-operator.yaml
@@ -23,6 +23,11 @@ metadata:
namespace: {{ .Release.Namespace }}
labels:
{{- include "flink-operator.labels" . | nindent 4 }}
+ {{- if index (.Values.operatorPod) "labels" }}
+ {{- with .Values.operatorPod.labels }}
+ {{- toYaml . | nindent 4 }}
+ {{- end }}
+ {{- end }}
spec:
replicas: {{ .Values.replicas }}
strategy: