Skip to content

Commit 67aa78b

Browse files
authored
[FLINK-37242] Add labels for flink-operator-webhook-service
1 parent 3dfa820 commit 67aa78b

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

docs/content/docs/operations/helm.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ The configurable parameters of the Helm chart and which default values as detail
8080
| rbac.create | Whether to enable RBAC to create for said namespaces. | true |
8181
| rbac.nodesRule.create | Whether to add RBAC rule to list nodes which is needed for rest-service exposed as NodePort type. | false |
8282
| operatorPod.annotations | Custom annotations to be added to the operator pod (but not the deployment). | |
83-
| operatorPod.labels | Custom labels to be added to the operator pod and deployment. | |
83+
| operatorPod.labels | Custom labels to be added to the operator pod and deployment. | |
8484
| operatorPod.env | Custom env to be added to the operator pod. | |
8585
| operatorPod.envFrom | Custom envFrom settings to be added to the operator pod. | |
8686
| operatorPod.dnsPolicy | DNS policy to be used by the operator pod. | |
@@ -89,7 +89,7 @@ The configurable parameters of the Helm chart and which default values as detail
8989
| operatorPod.topologySpreadConstraints | Custom topologySpreadConstraints to be added to the operator pod. | |
9090
| operatorPod.resources | Custom resources block to be added to the operator pod on main container. | |
9191
| operatorPod.webhook.resources | Custom resources block to be added to the operator pod on flink-webhook container. | |
92-
| operatorPod.webhook.container.env | Custom env to be added to the flink-webhook container | |
92+
| operatorPod.webhook.container.env | Custom env to be added to the flink-webhook container | |
9393
| operatorPod.tolerations | Custom tolerations to be added to the operator pod. | |
9494
| operatorServiceAccount.create | Whether to enable operator service account to create for flink-kubernetes-operator. | true |
9595
| operatorServiceAccount.annotations | The annotations of operator service account. | |
@@ -108,6 +108,7 @@ The configurable parameters of the Helm chart and which default values as detail
108108
| webhook.mutator.create | Enable or disable mutating webhook, overrides `webhook.create` | |
109109
| webhook.validator.create | Enable or disable validating webhook, overrides `webhook.create` | |
110110
| webhook.keystore | The ConfigMap of webhook key store. | useDefaultPassword: true |
111+
| webhook.serviceLabels | The labels for flink-operator-webhook-service-resource. | |
111112
| defaultConfiguration.create | Whether to enable default configuration to create for flink-kubernetes-operator. | true |
112113
| defaultConfiguration.append | Whether to append configuration files with configs. | true |
113114
| defaultConfiguration.flink-conf.yaml | The default configuration of flink-conf.yaml. | kubernetes.operator.metrics.reporter.slf4j.factory.class: org.apache.flink.metrics.slf4j.Slf4jReporterFactory<br/>kubernetes.operator.metrics.reporter.slf4j.interval: 5 MINUTE<br/>kubernetes.operator.reconcile.interval: 15 s<br/>kubernetes.operator.observer.progress-check.interval: 5 s |

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ kind: Service
2323
metadata:
2424
name: flink-operator-webhook-service
2525
namespace: {{ .Release.Namespace }}
26+
{{- if .Values.webhook.serviceLabels }}
27+
labels:
28+
{{- range $key, $value := .Values.webhook.serviceLabels }}
29+
{{ $key }}: {{ $value }}
30+
{{- end }}
31+
{{- end }}
2632
spec:
2733
ports:
2834
- port: 443

helm/flink-kubernetes-operator/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ webhook:
151151
# passwordSecretRef:
152152
# name: jks-password-secret
153153
# key: password-key
154+
serviceLabels: {}
154155

155156
defaultConfiguration:
156157
# If set to true, creates ConfigMaps/VolumeMounts. If set to false, no configuration will be created.

0 commit comments

Comments
 (0)