Skip to content

Commit

Permalink
[FLINK-35402][helm] Add labels to metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
luismacosta committed Jun 11, 2024
1 parent ebd7203 commit 74fc8d2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/content.zh/docs/operations/helm.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. | |
Expand Down
2 changes: 1 addition & 1 deletion docs/content/docs/operations/helm.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. | |
Expand Down
5 changes: 5 additions & 0 deletions helm/flink-kubernetes-operator/templates/flink-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 74fc8d2

Please sign in to comment.