You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by gy...@apache.org on 2022/03/08 08:43:43 UTC

[flink-kubernetes-operator] 02/02: [FLINK-26308] Fix webhook behavior when working with multiple namespaces

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

commit e1c9bb8d7e1e297958ea68d4b6664a08a9140f09
Author: Marton Balassi <ma...@apple.com>
AuthorDate: Mon Mar 7 15:41:32 2022 +0100

    [FLINK-26308] Fix webhook behavior when working with multiple namespaces
---
 helm/flink-operator/templates/webhook.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/helm/flink-operator/templates/webhook.yaml b/helm/flink-operator/templates/webhook.yaml
index 66df08f..664ae77 100644
--- a/helm/flink-operator/templates/webhook.yaml
+++ b/helm/flink-operator/templates/webhook.yaml
@@ -106,6 +106,6 @@ webhooks:
     matchExpressions:
       - key: kubernetes.io/metadata.name
         operator: In
-        values: {{ .Values.watchNamespaces }}
+        values: [{{- range .Values.watchNamespaces }}{{ . | quote }},{{- end}}]
   {{- end }}
   {{- end }}