Skip to content

Commit 103c2d2

Browse files
Task/csi 3503 add verification yamls only (#227)
* add pr for yamls only Signed-off-by: matancarmeli7 <[email protected]> * add yq Signed-off-by: matancarmeli7 <[email protected]> * remove yq Signed-off-by: matancarmeli7 <[email protected]>
1 parent 01af6ba commit 103c2d2

File tree

9 files changed

+1143
-1877
lines changed

9 files changed

+1143
-1877
lines changed

config/manager/manager.yaml

+50-68
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,50 @@
11
apiVersion: apps/v1
22
kind: Deployment
33
metadata:
4-
name: ibm-block-csi-operator
5-
namespace: default
64
labels:
7-
product: ibm-block-csi-driver
8-
csi: ibm
9-
app.kubernetes.io/name: ibm-block-csi-operator
105
app.kubernetes.io/instance: ibm-block-csi-operator
116
app.kubernetes.io/managed-by: ibm-block-csi-operator
7+
app.kubernetes.io/name: ibm-block-csi-operator
8+
csi: ibm
9+
product: ibm-block-csi-driver
10+
name: ibm-block-csi-operator
11+
namespace: default
1212
spec:
1313
replicas: 1
1414
selector:
1515
matchLabels:
1616
app.kubernetes.io/name: ibm-block-csi-operator
1717
template:
1818
metadata:
19+
annotations:
20+
productID: 5027566ef6c54de49028be7df25119e1
21+
productMetric: FREE
22+
productName: IBM Block CSI Driver
23+
productVersion: 1.8.0
1924
labels:
20-
app.kubernetes.io/name: ibm-block-csi-operator
2125
app.kubernetes.io/instance: ibm-block-csi-operator
2226
app.kubernetes.io/managed-by: ibm-block-csi-operator
23-
product: ibm-block-csi-driver
27+
app.kubernetes.io/name: ibm-block-csi-operator
2428
csi: ibm
25-
annotations:
26-
productName: "IBM Block CSI Driver"
27-
productID: "5027566ef6c54de49028be7df25119e1"
28-
productVersion: "1.8.0"
29-
productMetric: "FREE"
29+
product: ibm-block-csi-driver
3030
spec:
31-
serviceAccountName: ibm-block-csi-operator
3231
affinity:
3332
nodeAffinity:
3433
requiredDuringSchedulingIgnoredDuringExecution:
3534
nodeSelectorTerms:
36-
- matchExpressions:
37-
- key: kubernetes.io/arch
38-
operator: In
39-
values:
40-
- amd64
41-
- s390x
42-
- ppc64le
35+
- matchExpressions:
36+
- key: kubernetes.io/arch
37+
operator: In
38+
values:
39+
- amd64
40+
- s390x
41+
- ppc64le
4342
containers:
44-
- name: ibm-block-csi-operator
45-
resources:
46-
requests:
47-
memory: 100Mi
48-
cpu: 50m
49-
limits:
50-
memory: 500Mi
51-
cpu: 100m
52-
readinessProbe:
53-
exec:
54-
command: ["./health_check.sh"]
55-
initialDelaySeconds: 3
56-
periodSeconds: 1
57-
livenessProbe:
58-
exec:
59-
command: ["./health_check.sh"]
60-
initialDelaySeconds: 10
61-
periodSeconds: 30
62-
securityContext:
63-
capabilities:
64-
drop:
65-
- ALL
66-
image: ibmcom/ibm-block-csi-operator:1.8.0
67-
imagePullPolicy: IfNotPresent
68-
command:
69-
- ibm-block-csi-operator
70-
args:
43+
- args:
7144
- --zap-encoder
7245
- console
46+
command:
47+
- ibm-block-csi-operator
7348
env:
7449
- name: WATCH_NAMESPACE
7550
value: ""
@@ -78,24 +53,31 @@ spec:
7853
fieldRef:
7954
fieldPath: metadata.name
8055
- name: OPERATOR_NAME
81-
value: "ibm-block-csi-operator"
82-
#- name: ENDPOINT
83-
# value: "unix:///storage/storage.sock:10086"
84-
#- name: ISCSI_AGENT_PORT
85-
# value: "10086"
86-
#volumeMounts:
87-
#- name: socket-dir
88-
# mountPath: /storage/
89-
#- name: ibm-storage-agent
90-
#image: ibmcom/ibm-storage-agent:0.0.4
91-
#imagePullPolicy: IfNotPresent
92-
#env:
93-
#- name: ENDPOINT
94-
# value: "unix:///storage/storage.sock:10086"
95-
#volumeMounts:
96-
#- name: socket-dir
97-
# mountPath: /storage/
98-
99-
#volumes:
100-
#- name: socket-dir
101-
#emptyDir: {}
56+
value: ibm-block-csi-operator
57+
image: ibmcom/ibm-block-csi-operator:1.8.0
58+
imagePullPolicy: IfNotPresent
59+
livenessProbe:
60+
exec:
61+
command:
62+
- ./health_check.sh
63+
initialDelaySeconds: 10
64+
periodSeconds: 30
65+
name: ibm-block-csi-operator
66+
readinessProbe:
67+
exec:
68+
command:
69+
- ./health_check.sh
70+
initialDelaySeconds: 3
71+
periodSeconds: 1
72+
resources:
73+
limits:
74+
cpu: 100m
75+
memory: 500Mi
76+
requests:
77+
cpu: 50m
78+
memory: 100Mi
79+
securityContext:
80+
capabilities:
81+
drop:
82+
- ALL
83+
serviceAccountName: ibm-block-csi-operator

config/rbac/role.yaml

+38-39
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ apiVersion: rbac.authorization.k8s.io/v1
44
kind: ClusterRole
55
metadata:
66
creationTimestamp: null
7-
name: ibm-block-csi-operator
87
labels:
9-
product: ibm-block-csi-driver
10-
csi: ibm
11-
app.kubernetes.io/name: ibm-block-csi-operator
128
app.kubernetes.io/instance: ibm-block-csi-operator
139
app.kubernetes.io/managed-by: ibm-block-csi-operator
10+
app.kubernetes.io/name: ibm-block-csi-operator
11+
csi: ibm
12+
product: ibm-block-csi-driver
13+
name: ibm-block-csi-operator
1414
rules:
1515
- apiGroups:
1616
- ""
@@ -143,6 +143,40 @@ rules:
143143
- list
144144
- update
145145
- watch
146+
- apiGroups:
147+
- replication.storage.openshift.io
148+
resources:
149+
- volumereplicationclasses
150+
verbs:
151+
- get
152+
- list
153+
- watch
154+
- apiGroups:
155+
- replication.storage.openshift.io
156+
resources:
157+
- volumereplications
158+
verbs:
159+
- create
160+
- delete
161+
- get
162+
- list
163+
- patch
164+
- update
165+
- watch
166+
- apiGroups:
167+
- replication.storage.openshift.io
168+
resources:
169+
- volumereplications/finalizers
170+
verbs:
171+
- update
172+
- apiGroups:
173+
- replication.storage.openshift.io
174+
resources:
175+
- volumereplications/status
176+
verbs:
177+
- get
178+
- patch
179+
- update
146180
- apiGroups:
147181
- security.openshift.io
148182
resourceNames:
@@ -219,41 +253,6 @@ rules:
219253
verbs:
220254
- get
221255
- list
222-
- watch
223-
- patch
224-
- update
225-
- apiGroups:
226-
- replication.storage.openshift.io
227-
resources:
228-
- volumereplicationclasses
229-
verbs:
230-
- get
231-
- list
232-
- watch
233-
- apiGroups:
234-
- replication.storage.openshift.io
235-
resources:
236-
- volumereplications
237-
verbs:
238-
- create
239-
- delete
240-
- get
241-
- list
242-
- patch
243-
- update
244-
- watch
245-
- apiGroups:
246-
- replication.storage.openshift.io
247-
resources:
248-
- volumereplications/finalizers
249-
verbs:
250-
- update
251-
- apiGroups:
252-
- replication.storage.openshift.io
253-
resources:
254-
- volumereplications/status
255-
verbs:
256-
- get
257256
- patch
258257
- update
259258
- watch

config/rbac/role_binding.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
apiVersion: rbac.authorization.k8s.io/v1
22
kind: ClusterRoleBinding
33
metadata:
4-
name: ibm-block-csi-operator
54
labels:
6-
product: ibm-block-csi-driver
7-
csi: ibm
8-
app.kubernetes.io/name: ibm-block-csi-operator
95
app.kubernetes.io/instance: ibm-block-csi-operator
106
app.kubernetes.io/managed-by: ibm-block-csi-operator
7+
app.kubernetes.io/name: ibm-block-csi-operator
8+
csi: ibm
9+
product: ibm-block-csi-driver
10+
name: ibm-block-csi-operator
1111
roleRef:
1212
apiGroup: rbac.authorization.k8s.io
1313
kind: ClusterRole

config/rbac/service_account.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
apiVersion: v1
22
kind: ServiceAccount
33
metadata:
4-
name: ibm-block-csi-operator
5-
namespace: default
64
labels:
7-
product: ibm-block-csi-driver
8-
csi: ibm
9-
app.kubernetes.io/name: ibm-block-csi-operator
105
app.kubernetes.io/instance: ibm-block-csi-operator
116
app.kubernetes.io/managed-by: ibm-block-csi-operator
7+
app.kubernetes.io/name: ibm-block-csi-operator
8+
csi: ibm
9+
product: ibm-block-csi-driver
1210
release: v1.8.0
11+
name: ibm-block-csi-operator
12+
namespace: default

deploy/installer/generated/ibm-block-csi-operator.yaml

+34-35
Original file line numberDiff line numberDiff line change
@@ -1250,6 +1250,40 @@ rules:
12501250
- list
12511251
- update
12521252
- watch
1253+
- apiGroups:
1254+
- replication.storage.openshift.io
1255+
resources:
1256+
- volumereplicationclasses
1257+
verbs:
1258+
- get
1259+
- list
1260+
- watch
1261+
- apiGroups:
1262+
- replication.storage.openshift.io
1263+
resources:
1264+
- volumereplications
1265+
verbs:
1266+
- create
1267+
- delete
1268+
- get
1269+
- list
1270+
- patch
1271+
- update
1272+
- watch
1273+
- apiGroups:
1274+
- replication.storage.openshift.io
1275+
resources:
1276+
- volumereplications/finalizers
1277+
verbs:
1278+
- update
1279+
- apiGroups:
1280+
- replication.storage.openshift.io
1281+
resources:
1282+
- volumereplications/status
1283+
verbs:
1284+
- get
1285+
- patch
1286+
- update
12531287
- apiGroups:
12541288
- security.openshift.io
12551289
resourceNames:
@@ -1326,41 +1360,6 @@ rules:
13261360
verbs:
13271361
- get
13281362
- list
1329-
- watch
1330-
- patch
1331-
- update
1332-
- apiGroups:
1333-
- replication.storage.openshift.io
1334-
resources:
1335-
- volumereplicationclasses
1336-
verbs:
1337-
- get
1338-
- list
1339-
- watch
1340-
- apiGroups:
1341-
- replication.storage.openshift.io
1342-
resources:
1343-
- volumereplications
1344-
verbs:
1345-
- create
1346-
- delete
1347-
- get
1348-
- list
1349-
- patch
1350-
- update
1351-
- watch
1352-
- apiGroups:
1353-
- replication.storage.openshift.io
1354-
resources:
1355-
- volumereplications/finalizers
1356-
verbs:
1357-
- update
1358-
- apiGroups:
1359-
- replication.storage.openshift.io
1360-
resources:
1361-
- volumereplications/status
1362-
verbs:
1363-
- get
13641363
- patch
13651364
- update
13661365
- watch

0 commit comments

Comments
 (0)