File tree Expand file tree Collapse file tree 5 files changed +83
-0
lines changed Expand file tree Collapse file tree 5 files changed +83
-0
lines changed Original file line number Diff line number Diff line change 53
53
- /srv-cert/tls.key
54
54
- --client-ca
55
55
- /profile-collector-cert/tls.crt
56
+ - --protectedCopiedCSVNamespaces
57
+ - openshift
56
58
image : quay.io/operator-framework/olm@sha256:de396b540b82219812061d0d753440d5655250c621c753ed1dc67d6154741607
57
59
imagePullPolicy : IfNotPresent
58
60
ports :
Original file line number Diff line number Diff line change 53
53
- /srv-cert/tls.key
54
54
- --client-ca
55
55
- /profile-collector-cert/tls.crt
56
+ - --protectedCopiedCSVNamespaces
57
+ - openshift
56
58
image : quay.io/operator-framework/olm@sha256:de396b540b82219812061d0d753440d5655250c621c753ed1dc67d6154741607
57
59
imagePullPolicy : IfNotPresent
58
60
ports :
Original file line number Diff line number Diff line change
1
+ apiVersion : rbac.authorization.k8s.io/v1
2
+ kind : Role
3
+ metadata :
4
+ annotations :
5
+ rbac.authorization.kubernetes.io/autoupdate : " true"
6
+ include.release.openshift.io/ibm-cloud-managed : " true"
7
+ include.release.openshift.io/self-managed-high-availability : " true"
8
+ name : copied-csv-viewer
9
+ namespace : openshift
10
+ rules :
11
+ - apiGroups :
12
+ - " operators.coreos.com"
13
+ resources :
14
+ - " clusterserviceversions"
15
+ verbs :
16
+ - get
17
+ - list
18
+ - watch
19
+ ---
20
+ apiVersion : rbac.authorization.k8s.io/v1
21
+ kind : RoleBinding
22
+ metadata :
23
+ annotations :
24
+ rbac.authorization.kubernetes.io/autoupdate : " true"
25
+ include.release.openshift.io/ibm-cloud-managed : " true"
26
+ include.release.openshift.io/self-managed-high-availability : " true"
27
+ name : copied-csv-viewers
28
+ namespace : openshift
29
+ roleRef :
30
+ apiGroup : rbac.authorization.k8s.io
31
+ kind : Role
32
+ name : copied-csv-viewer
33
+ subjects :
34
+ - apiGroup : rbac.authorization.k8s.io
35
+ kind : Group
36
+ name : system:authenticated
Original file line number Diff line number Diff line change @@ -363,6 +363,41 @@ metadata:
363
363
release.openshift.io/delete: "true"
364
364
EOF
365
365
366
+ cat << EOF > manifests/0000_50_olm_15-csv-viewer.rbac.yaml
367
+ apiVersion: rbac.authorization.k8s.io/v1
368
+ kind: Role
369
+ metadata:
370
+ annotations:
371
+ rbac.authorization.kubernetes.io/autoupdate: "true"
372
+ name: copied-csv-viewer
373
+ namespace: openshift
374
+ rules:
375
+ - apiGroups:
376
+ - "operators.coreos.com"
377
+ resources:
378
+ - "clusterserviceversions"
379
+ verbs:
380
+ - get
381
+ - list
382
+ - watch
383
+ ---
384
+ apiVersion: rbac.authorization.k8s.io/v1
385
+ kind: RoleBinding
386
+ metadata:
387
+ annotations:
388
+ rbac.authorization.kubernetes.io/autoupdate: "true"
389
+ name: copied-csv-viewers
390
+ namespace: openshift
391
+ roleRef:
392
+ apiGroup: rbac.authorization.k8s.io
393
+ kind: Role
394
+ name: copied-csv-viewer
395
+ subjects:
396
+ - apiGroup: rbac.authorization.k8s.io
397
+ kind: Group
398
+ name: system:authenticated
399
+ EOF
400
+
366
401
add_ibm_managed_cloud_annotations " ${ROOT_DIR} /manifests"
367
402
368
403
find " ${ROOT_DIR} /manifests" -type f -exec $SED -i " /^#/d" {} \;
Original file line number Diff line number Diff line change 9
9
value :
10
10
name : RELEASE_VERSION
11
11
value : " 0.0.1-snapshot"
12
+ - command : update
13
+ path : spec.template.spec.containers[0].args[+]
14
+ value :
15
+ --protectedCopiedCSVNamespaces
16
+ - command : update
17
+ path : spec.template.spec.containers[0].args[+]
18
+ value :
19
+ openshift
12
20
- command : update
13
21
path : spec.template.spec.containers[*].securityContext
14
22
value :
You can’t perform that action at this time.
0 commit comments