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 67aa78b1 [FLINK-37242] Add labels for flink-operator-webhook-service
67aa78b1 is described below
commit 67aa78b1cc52acba4e73dc348d98196617464cb1
Author: Dao Thanh Tung <[email protected]>
AuthorDate: Wed Feb 5 16:06:04 2025 +0000
[FLINK-37242] Add labels for flink-operator-webhook-service
---
docs/content/docs/operations/helm.md | 5 +++--
helm/flink-kubernetes-operator/templates/webhook.yaml | 6 ++++++
helm/flink-kubernetes-operator/values.yaml | 1 +
3 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/docs/content/docs/operations/helm.md
b/docs/content/docs/operations/helm.md
index bc5fbfb9..88dbeff9 100644
--- a/docs/content/docs/operations/helm.md
+++ b/docs/content/docs/operations/helm.md
@@ -80,7 +80,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 and 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.
|
[...]
@@ -89,7 +89,7 @@ The configurable parameters of the Helm chart and which
default values as detail
| operatorPod.topologySpreadConstraints | Custom
topologySpreadConstraints to be added to the operator pod.
|
[...]
| operatorPod.resources | Custom resources block to
be added to the operator pod on main container.
|
[...]
| operatorPod.webhook.resources | Custom resources block to
be added to the operator pod on flink-webhook container.
|
[...]
-| operatorPod.webhook.container.env | Custom env to be added to
the flink-webhook container
| |
+| operatorPod.webhook.container.env | Custom env to be added to
the flink-webhook container
|
|
| operatorPod.tolerations | Custom tolerations to be
added to the operator pod.
|
[...]
| operatorServiceAccount.create | Whether to enable operator
service account to create for flink-kubernetes-operator.
| true
[...]
| 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
| webhook.mutator.create | Enable or disable mutating
webhook, overrides `webhook.create`
|
[...]
| webhook.validator.create | Enable or disable
validating webhook, overrides `webhook.create`
|
[...]
| webhook.keystore | The ConfigMap of webhook
key store.
| useDefaultPassword:
true
[...]
+| webhook.serviceLabels | The labels for
flink-operator-webhook-service-resource.
|
|
| defaultConfiguration.create | Whether to enable default
configuration to create for flink-kubernetes-operator.
| true
[...]
| defaultConfiguration.append | Whether to append
configuration files with configs.
| true
[...]
| 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.interva [...]
diff --git a/helm/flink-kubernetes-operator/templates/webhook.yaml
b/helm/flink-kubernetes-operator/templates/webhook.yaml
index e7f703c6..cfe64aa1 100644
--- a/helm/flink-kubernetes-operator/templates/webhook.yaml
+++ b/helm/flink-kubernetes-operator/templates/webhook.yaml
@@ -23,6 +23,12 @@ kind: Service
metadata:
name: flink-operator-webhook-service
namespace: {{ .Release.Namespace }}
+ {{- if .Values.webhook.serviceLabels }}
+ labels:
+ {{- range $key, $value := .Values.webhook.serviceLabels }}
+ {{ $key }}: {{ $value }}
+ {{- end }}
+ {{- end }}
spec:
ports:
- port: 443
diff --git a/helm/flink-kubernetes-operator/values.yaml
b/helm/flink-kubernetes-operator/values.yaml
index 824b2659..c23d742c 100644
--- a/helm/flink-kubernetes-operator/values.yaml
+++ b/helm/flink-kubernetes-operator/values.yaml
@@ -151,6 +151,7 @@ webhook:
# passwordSecretRef:
# name: jks-password-secret
# key: password-key
+ serviceLabels: {}
defaultConfiguration:
# If set to true, creates ConfigMaps/VolumeMounts. If set to false, no
configuration will be created.
