Fix Kafka Operator to watch all namespaces. 19/82619/1
authorDileep Ranganathan <dileep.ranganathan@intel.com>
Mon, 18 Mar 2019 23:06:05 +0000 (16:06 -0700)
committerDileep Ranganathan <dileep.ranganathan@intel.com>
Mon, 18 Mar 2019 23:06:21 +0000 (16:06 -0700)
Temp. fix to make Strimzi kafka operator cluster-wide.

Issue-ID: ONAPARC-392
Change-Id: Icfda09ed2fdd42efe1a9728509c5c3cbbb9f88c0
Signed-off-by: Dileep Ranganathan <dileep.ranganathan@intel.com>
vnfs/DAaaS/messaging/charts/strimzi-kafka-operator/templates/020-RoleBinding-strimzi-cluster-operator.yaml
vnfs/DAaaS/messaging/charts/strimzi-kafka-operator/templates/031-RoleBinding-strimzi-cluster-operator-entity-operator-delegation.yaml
vnfs/DAaaS/messaging/charts/strimzi-kafka-operator/templates/032-RoleBinding-strimzi-cluster-operator-topic-operator-delegation.yaml
vnfs/DAaaS/messaging/charts/strimzi-kafka-operator/templates/050-Deployment-strimzi-cluster-operator.yaml
vnfs/DAaaS/messaging/charts/strimzi-kafka-operator/values.yaml

index 5f01314..647774b 100644 (file)
@@ -1,5 +1,6 @@
 {{- $root := . -}}
 {{- range append .Values.watchNamespaces .Release.Namespace }}
+{{- if ne . "*" -}}
 ---
 apiVersion: rbac.authorization.k8s.io/v1beta1
 kind: RoleBinding
@@ -21,3 +22,4 @@ roleRef:
   name: strimzi-cluster-operator-namespaced
   apiGroup: rbac.authorization.k8s.io
 {{- end }}
+{{- end }}
\ No newline at end of file
index 969fccd..20b163d 100644 (file)
@@ -1,5 +1,6 @@
 {{- $root := . -}}
 {{- range append .Values.watchNamespaces .Release.Namespace }}
+{{- if ne . "*" -}}
 ---
 apiVersion: rbac.authorization.k8s.io/v1beta1
 kind: RoleBinding
@@ -21,3 +22,4 @@ roleRef:
   name: strimzi-entity-operator
   apiGroup: rbac.authorization.k8s.io
 {{- end }}
+{{- end }}
index 30602f6..29f3d36 100644 (file)
@@ -1,5 +1,6 @@
 {{- $root := . -}}
 {{- range append .Values.watchNamespaces .Release.Namespace }}
+{{- if ne . "*" -}}
 ---
 apiVersion: rbac.authorization.k8s.io/v1beta1
 kind: RoleBinding
@@ -21,3 +22,4 @@ roleRef:
   name: strimzi-topic-operator
   apiGroup: rbac.authorization.k8s.io
 {{- end }}
+{{- end }}
index d1ae281..2f9b570 100644 (file)
@@ -24,8 +24,12 @@ spec:
             - name: STRIMZI_NAMESPACE
               {{- if .Values.watchNamespaces -}}
               {{- $ns := .Values.watchNamespaces -}}
+              {{- if has "*" $ns }}
+              value: "*"
+              {{- else -}}
               {{- $ns := append $ns .Release.Namespace }}
               value: "{{ join "," $ns }}"
+              {{- end }}
               {{- else }}
               valueFrom:
                 fieldRef:
index b9c5f2e..74a7c58 100644 (file)
@@ -1,6 +1,7 @@
 # Default values for strimzi-kafka-operator.
 
-watchNamespaces: []
+watchNamespaces:
+  - "*"
 
 image:
   repository: strimzi