Skip to content

Commit 74fc8d2

Browse files
authored
[FLINK-35402][helm] Add labels to metadata
1 parent ebd7203 commit 74fc8d2

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

docs/content.zh/docs/operations/helm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ The configurable parameters of the Helm chart and which default values as detail
7676
| rbac.create | Whether to enable RBAC to create for said namespaces. | true |
7777
| rbac.nodesRule.create | Whether to add RBAC rule to list nodes which is needed for rest-service exposed as NodePort type. | false |
7878
| operatorPod.annotations | Custom annotations to be added to the operator pod (but not the deployment). | |
79-
| operatorPod.labels | Custom labels to be added to the operator pod (but not the deployment). | |
79+
| operatorPod.labels | Custom labels to be added to the operator pod and deployment. | |
8080
| operatorPod.env | Custom env to be added to the operator pod. | |
8181
| operatorPod.envFrom | Custom envFrom settings to be added to the operator pod. | |
8282
| operatorPod.dnsPolicy | DNS policy to be used by the operator pod. | |

docs/content/docs/operations/helm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ The configurable parameters of the Helm chart and which default values as detail
7676
| rbac.create | Whether to enable RBAC to create for said namespaces. | true |
7777
| rbac.nodesRule.create | Whether to add RBAC rule to list nodes which is needed for rest-service exposed as NodePort type. | false |
7878
| operatorPod.annotations | Custom annotations to be added to the operator pod (but not the deployment). | |
79-
| operatorPod.labels | Custom labels to be added to the operator pod (but not the deployment). | |
79+
| operatorPod.labels | Custom labels to be added to the operator pod and deployment. | |
8080
| operatorPod.env | Custom env to be added to the operator pod. | |
8181
| operatorPod.envFrom | Custom envFrom settings to be added to the operator pod. | |
8282
| operatorPod.dnsPolicy | DNS policy to be used by the operator pod. | |

helm/flink-kubernetes-operator/templates/flink-operator.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ metadata:
2323
namespace: {{ .Release.Namespace }}
2424
labels:
2525
{{- include "flink-operator.labels" . | nindent 4 }}
26+
{{- if index (.Values.operatorPod) "labels" }}
27+
{{- with .Values.operatorPod.labels }}
28+
{{- toYaml . | nindent 4 }}
29+
{{- end }}
30+
{{- end }}
2631
spec:
2732
replicas: {{ .Values.replicas }}
2833
strategy:

0 commit comments

Comments
 (0)