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>
{{- $root := . -}}
{{- range append .Values.watchNamespaces .Release.Namespace }}
+{{- if ne . "*" -}}
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: RoleBinding
name: strimzi-cluster-operator-namespaced
apiGroup: rbac.authorization.k8s.io
{{- end }}
+{{- end }}
\ No newline at end of file
{{- $root := . -}}
{{- range append .Values.watchNamespaces .Release.Namespace }}
+{{- if ne . "*" -}}
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: RoleBinding
name: strimzi-entity-operator
apiGroup: rbac.authorization.k8s.io
{{- end }}
+{{- end }}
{{- $root := . -}}
{{- range append .Values.watchNamespaces .Release.Namespace }}
+{{- if ne . "*" -}}
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: RoleBinding
name: strimzi-topic-operator
apiGroup: rbac.authorization.k8s.io
{{- end }}
+{{- end }}
- 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:
# Default values for strimzi-kafka-operator.
-watchNamespaces: []
+watchNamespaces:
+ - "*"
image:
repository: strimzi