File tree 11 files changed +55
-53
lines changed
11 files changed +55
-53
lines changed Original file line number Diff line number Diff line change @@ -2,23 +2,25 @@ apiVersion: v1
2
2
kind : Namespace
3
3
metadata :
4
4
name : openshift-operator-lifecycle-manager
5
+ labels :
6
+ openshift.io/scc : " anyuid"
7
+ openshift.io/cluster-monitoring : " true"
5
8
annotations :
6
9
openshift.io/node-selector : " "
7
10
workload.openshift.io/allowed : " management"
8
11
include.release.openshift.io/ibm-cloud-managed : " true"
9
12
include.release.openshift.io/self-managed-high-availability : " true"
10
- labels :
11
- openshift.io/scc : " anyuid"
12
- openshift.io/cluster-monitoring : " true"
13
13
---
14
14
apiVersion : v1
15
15
kind : Namespace
16
16
metadata :
17
17
name : openshift-operators
18
+ labels :
19
+ pod-security.kubernetes.io/enforce : baseline
20
+ pod-security.kubernetes.io/enforce-version : " v1.24"
21
+ openshift.io/scc : " anyuid"
18
22
annotations :
19
23
openshift.io/node-selector : " "
20
24
workload.openshift.io/allowed : " management"
21
25
include.release.openshift.io/ibm-cloud-managed : " true"
22
26
include.release.openshift.io/self-managed-high-availability : " true"
23
- labels :
24
- openshift.io/scc : " anyuid"
Original file line number Diff line number Diff line change 21
21
annotations :
22
22
target.workload.openshift.io/management : ' {"effect": "PreferredDuringScheduling"}'
23
23
spec :
24
+ securityContext :
25
+ runAsNonRoot : true
26
+ seccompProfile :
27
+ type : RuntimeDefault
24
28
serviceAccountName : olm-operator-serviceaccount
25
29
volumes :
26
30
- name : srv-cert
31
35
secretName : pprof-cert
32
36
containers :
33
37
- name : olm-operator
38
+ securityContext :
39
+ allowPrivilegeEscalation : false
40
+ capabilities :
41
+ drop : ["ALL"]
34
42
volumeMounts :
35
43
- name : srv-cert
36
44
mountPath : " /srv-cert"
82
90
requests :
83
91
cpu : 10m
84
92
memory : 160Mi
85
- securityContext :
86
- allowPrivilegeEscalation : false
87
- capabilities :
88
- drop : ["ALL"]
89
93
nodeSelector :
90
94
kubernetes.io/os : linux
91
95
tolerations :
@@ -101,8 +105,3 @@ spec:
101
105
operator : Exists
102
106
tolerationSeconds : 120
103
107
priorityClassName : system-cluster-critical
104
- securityContext :
105
- runAsNonRoot : true
106
- runAsUser : 65534
107
- seccompProfile :
108
- type : RuntimeDefault
Original file line number Diff line number Diff line change 21
21
annotations :
22
22
target.workload.openshift.io/management : ' {"effect": "PreferredDuringScheduling"}'
23
23
spec :
24
+ securityContext :
25
+ runAsNonRoot : true
26
+ seccompProfile :
27
+ type : RuntimeDefault
24
28
serviceAccountName : olm-operator-serviceaccount
25
29
volumes :
26
30
- name : srv-cert
31
35
secretName : pprof-cert
32
36
containers :
33
37
- name : olm-operator
38
+ securityContext :
39
+ allowPrivilegeEscalation : false
40
+ capabilities :
41
+ drop : ["ALL"]
34
42
volumeMounts :
35
43
- name : srv-cert
36
44
mountPath : " /srv-cert"
82
90
requests :
83
91
cpu : 10m
84
92
memory : 160Mi
85
- securityContext :
86
- allowPrivilegeEscalation : false
87
- capabilities :
88
- drop : ["ALL"]
89
93
nodeSelector :
90
94
kubernetes.io/os : linux
91
95
node-role.kubernetes.io/master : " "
@@ -102,8 +106,3 @@ spec:
102
106
operator : Exists
103
107
tolerationSeconds : 120
104
108
priorityClassName : system-cluster-critical
105
- securityContext :
106
- runAsNonRoot : true
107
- runAsUser : 65534
108
- seccompProfile :
109
- type : RuntimeDefault
Original file line number Diff line number Diff line change 21
21
annotations :
22
22
target.workload.openshift.io/management : ' {"effect": "PreferredDuringScheduling"}'
23
23
spec :
24
+ securityContext :
25
+ runAsNonRoot : true
26
+ seccompProfile :
27
+ type : RuntimeDefault
24
28
serviceAccountName : olm-operator-serviceaccount
25
29
volumes :
26
30
- name : srv-cert
31
35
secretName : pprof-cert
32
36
containers :
33
37
- name : catalog-operator
38
+ securityContext :
39
+ allowPrivilegeEscalation : false
40
+ capabilities :
41
+ drop : ["ALL"]
34
42
volumeMounts :
35
43
- name : srv-cert
36
44
mountPath : " /srv-cert"
55
63
- /srv-cert/tls.key
56
64
- --client-ca
57
65
- /profile-collector-cert/tls.crt
66
+ - --set-workload-user-id=false
58
67
image : quay.io/operator-framework/olm@sha256:de396b540b82219812061d0d753440d5655250c621c753ed1dc67d6154741607
59
68
imagePullPolicy : IfNotPresent
60
69
ports :
78
87
env :
79
88
- name : RELEASE_VERSION
80
89
value : " 0.0.1-snapshot"
81
- securityContext :
82
- allowPrivilegeEscalation : false
83
- capabilities :
84
- drop : ["ALL"]
85
90
nodeSelector :
86
91
kubernetes.io/os : linux
87
92
tolerations :
97
102
operator : Exists
98
103
tolerationSeconds : 120
99
104
priorityClassName : system-cluster-critical
100
- securityContext :
101
- runAsNonRoot : true
102
- runAsUser : 65534
103
- seccompProfile :
104
- type : RuntimeDefault
Original file line number Diff line number Diff line change 21
21
annotations :
22
22
target.workload.openshift.io/management : ' {"effect": "PreferredDuringScheduling"}'
23
23
spec :
24
+ securityContext :
25
+ runAsNonRoot : true
26
+ seccompProfile :
27
+ type : RuntimeDefault
24
28
serviceAccountName : olm-operator-serviceaccount
25
29
volumes :
26
30
- name : srv-cert
31
35
secretName : pprof-cert
32
36
containers :
33
37
- name : catalog-operator
38
+ securityContext :
39
+ allowPrivilegeEscalation : false
40
+ capabilities :
41
+ drop : ["ALL"]
34
42
volumeMounts :
35
43
- name : srv-cert
36
44
mountPath : " /srv-cert"
55
63
- /srv-cert/tls.key
56
64
- --client-ca
57
65
- /profile-collector-cert/tls.crt
66
+ - --set-workload-user-id=false
58
67
image : quay.io/operator-framework/olm@sha256:de396b540b82219812061d0d753440d5655250c621c753ed1dc67d6154741607
59
68
imagePullPolicy : IfNotPresent
60
69
ports :
78
87
env :
79
88
- name : RELEASE_VERSION
80
89
value : " 0.0.1-snapshot"
81
- securityContext :
82
- allowPrivilegeEscalation : false
83
- capabilities :
84
- drop : ["ALL"]
85
90
nodeSelector :
86
91
kubernetes.io/os : linux
87
92
node-role.kubernetes.io/master : " "
98
103
operator : Exists
99
104
tolerationSeconds : 120
100
105
priorityClassName : system-cluster-critical
101
- securityContext :
102
- runAsNonRoot : true
103
- runAsUser : 65534
104
- seccompProfile :
105
- type : RuntimeDefault
Original file line number Diff line number Diff line change 88
88
target.workload.openshift.io/management : ' {"effect": "PreferredDuringScheduling"}'
89
89
creationTimestamp : null
90
90
spec :
91
+ securityContext :
92
+ runAsNonRoot : true
93
+ seccompProfile :
94
+ type : RuntimeDefault
91
95
serviceAccountName : olm-operator-serviceaccount
92
96
nodeSelector :
93
97
kubernetes.io/os : linux
@@ -106,6 +110,10 @@ spec:
106
110
tolerationSeconds : 120
107
111
containers :
108
112
- name : packageserver
113
+ securityContext :
114
+ allowPrivilegeEscalation : false
115
+ capabilities :
116
+ drop : ["ALL"]
109
117
command :
110
118
- /bin/package-server
111
119
- -v=4
@@ -136,10 +144,6 @@ spec:
136
144
volumeMounts :
137
145
- name : tmpfs
138
146
mountPath : /tmp
139
- securityContext :
140
- allowPrivilegeEscalation : false
141
- capabilities :
142
- drop : ["ALL"]
143
147
volumes :
144
148
- name : tmpfs
145
149
emptyDir : {}
@@ -154,11 +158,6 @@ spec:
154
158
values :
155
159
- packageserver
156
160
topologyKey : " kubernetes.io/hostname"
157
- securityContext :
158
- runAsNonRoot : true
159
- runAsUser : 65534
160
- seccompProfile :
161
- type : RuntimeDefault
162
161
maturity : alpha
163
162
version : 0.19.0
164
163
apiservicedefinitions :
Original file line number Diff line number Diff line change 19
19
path : spec.template.spec.securityContext
20
20
value :
21
21
runAsNonRoot : true
22
- runAsUser : 65534
23
22
seccompProfile :
24
23
type : RuntimeDefault
Original file line number Diff line number Diff line change @@ -367,3 +367,5 @@ add_ibm_managed_cloud_annotations "${ROOT_DIR}/manifests"
367
367
368
368
find " ${ROOT_DIR} /manifests" -type f -exec $SED -i " /^#/d" {} \;
369
369
find " ${ROOT_DIR} /manifests" -type f -exec $SED -i " 1{/---/d}" {} \;
370
+
371
+ ${YQ} delete --inplace -d' 0' manifests/0000_50_olm_00-namespace.yaml ' metadata.labels."pod-security.kubernetes.io/enforce*"'
Original file line number Diff line number Diff line change 19
19
path : spec.template.spec.securityContext
20
20
value :
21
21
runAsNonRoot : true
22
- runAsUser : 65534
23
22
seccompProfile :
24
23
type : RuntimeDefault
Original file line number Diff line number Diff line change 43
43
path : spec.install.spec.deployments[0].spec.template.spec.securityContext
44
44
value :
45
45
runAsNonRoot : true
46
- runAsUser : 65534
47
46
seccompProfile :
48
47
type : RuntimeDefault
Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ rbacApiVersion: rbac.authorization.k8s.io
3
3
namespace : openshift-operator-lifecycle-manager
4
4
catalog_namespace : openshift-marketplace
5
5
operator_namespace : openshift-operators
6
+ operator_namespace_psa :
7
+ enforceLevel : baseline
8
+ enforceVersion : ' "v1.24"'
6
9
imagestream : true
7
10
writeStatusName : operator-lifecycle-manager
8
11
writeStatusNameCatalog : operator-lifecycle-manager-catalog
37
40
cpu : 10m
38
41
memory : 160Mi
39
42
catalog :
43
+ setWorkloadUserID : false
40
44
replicaCount : 1
41
45
opmImageArgs : --opmImage=quay.io/operator-framework/configmap-operator-registry:latest
42
46
image :
You can’t perform that action at this time.
0 commit comments