File tree Expand file tree Collapse file tree 6 files changed +23
-5
lines changed Expand file tree Collapse file tree 6 files changed +23
-5
lines changed Original file line number Diff line number Diff line change 1
1
kind : ClusterRole
2
2
apiVersion : rbac.authorization.k8s.io/v1
3
3
metadata :
4
- name : ibm-namespace-scope-operator
4
+ name : ibm-namespace-scope-operator-{{ .Values.global.operatorNamespace }}
5
5
labels :
6
6
component-id : {{ .Chart.Name }}
7
7
rules :
29
29
kind : ClusterRoleBinding
30
30
apiVersion : rbac.authorization.k8s.io/v1
31
31
metadata :
32
- name : ibm-namespace-scope-operator
32
+ name : ibm-namespace-scope-operator-{{ .Values.global.operatorNamespace }}
33
33
labels :
34
34
component-id : {{ .Chart.Name }}
35
35
subjects :
@@ -39,4 +39,4 @@ subjects:
39
39
roleRef :
40
40
apiGroup : rbac.authorization.k8s.io
41
41
kind : ClusterRole
42
- name : ibm-namespace-scope-operator
42
+ name : ibm-namespace-scope-operator-{{ .Values.global.operatorNamespace }}
Original file line number Diff line number Diff line change 4
4
imageRegistryNamespaceOperator : cpopen
5
5
imageRegistryNamespaceOperand : cpopen/cpfs
6
6
7
- # operatorNamespace: ""
7
+ global :
8
+ operatorNamespace : operators
Original file line number Diff line number Diff line change 6
6
{{- if .Values.global.instanceNamespace }}
7
7
{{- $namespaces = append $namespaces .Values.global.instanceNamespace }}
8
8
{{- end }}
9
+ {{- $labels := .Values.cpfs.labels }}
9
10
{{- range $i := $namespaces }}
10
11
kind : Role
11
12
apiVersion : rbac.authorization.k8s.io/v1
@@ -14,6 +15,9 @@ metadata:
14
15
namespace : {{ $i }}
15
16
labels :
16
17
component-id : {{ $chartName }}
18
+ {{- with $labels }}
19
+ {{- toYaml . | nindent 4 }}
20
+ {{- end }}
17
21
rules :
18
22
- verbs :
19
23
- create
@@ -94,6 +98,9 @@ metadata:
94
98
namespace : {{ $i }}
95
99
labels :
96
100
component-id : {{ $chartName }}
101
+ {{- with $labels }}
102
+ {{- toYaml . | nindent 4 }}
103
+ {{- end }}
97
104
subjects :
98
105
- kind : ServiceAccount
99
106
name : ibm-namespace-scope-operator
@@ -112,5 +119,8 @@ metadata:
112
119
app.kubernetes.io/managed-by : ibm-namespace-scope-operator
113
120
app.kubernetes.io/name : ibm-namespace-scope-operator
114
121
component-id : {{ .Chart.Name }}
122
+ {{- with .Values.cpfs.labels }}
123
+ {{- toYaml . | nindent 4 }}
124
+ {{- end }}
115
125
name : ibm-namespace-scope-operator
116
126
namespace : {{ .Values.global.operatorNamespace }}
Original file line number Diff line number Diff line change @@ -9,6 +9,9 @@ metadata:
9
9
app.kubernetes.io/name : ibm-namespace-scope-operator
10
10
productName : IBM_Cloud_Platform_Common_Services
11
11
component-id : {{ .Chart.Name }}
12
+ {{- with .Values.cpfs.labels }}
13
+ {{- toYaml . | nindent 4 }}
14
+ {{- end }}
12
15
spec :
13
16
replicas : 1
14
17
selector :
@@ -105,7 +108,7 @@ spec:
105
108
type : RuntimeDefault
106
109
imagePullPolicy : IfNotPresent
107
110
terminationMessagePolicy : File
108
- image : {{ .Values.global.imagePullPrefix }}/{{ .Values.cpfs.imageRegistryNamespaceOperator }}/ibm-namespace-scope-operator:4.2.12
111
+ image : {{ .Values.cpfs.imagePullPrefix | default .Values. global.imagePullPrefix }}/{{ .Values.cpfs.imageRegistryNamespaceOperator }}/ibm-namespace-scope-operator:4.2.12
109
112
serviceAccount : ibm-namespace-scope-operator
110
113
dnsPolicy : ClusterFirst
111
114
strategy :
Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ metadata:
4
4
labels :
5
5
foundationservices.cloudpak.ibm.com : nss
6
6
component-id : {{ .Chart.Name }}
7
+ {{- with .Values.cpfs.labels }}
8
+ {{- toYaml . | nindent 4 }}
9
+ {{- end }}
7
10
name : common-service
8
11
namespace : {{ .Values.global.operatorNamespace }}
9
12
spec :
Original file line number Diff line number Diff line change 8
8
cpfs :
9
9
imageRegistryNamespaceOperator : cpopen
10
10
imageRegistryNamespaceOperand : cpopen/cpfs
11
+ labels :
You can’t perform that action at this time.
0 commit comments