Skip to content

Commit b7dcde9

Browse files
committed
manifests/*: comply to restricted pod security level
1 parent ea4e749 commit b7dcde9

7 files changed

+63
-0
lines changed

manifests/0000_50_olm_06-psm-operator.deployment.ibm-cloud-managed.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,19 @@ spec:
2121
labels:
2222
app: package-server-manager
2323
spec:
24+
securityContext:
25+
runAsNonRoot: true
26+
runAsUser: 65534
27+
seccompProfile:
28+
type: RuntimeDefault
2429
serviceAccountName: olm-operator-serviceaccount
2530
priorityClassName: "system-cluster-critical"
2631
containers:
2732
- name: package-server-manager
33+
securityContext:
34+
allowPrivilegeEscalation: false
35+
capabilities:
36+
drop: ["ALL"]
2837
command:
2938
- /bin/psm
3039
- start

manifests/0000_50_olm_06-psm-operator.deployment.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,19 @@ spec:
2121
labels:
2222
app: package-server-manager
2323
spec:
24+
securityContext:
25+
runAsNonRoot: true
26+
runAsUser: 65534
27+
seccompProfile:
28+
type: RuntimeDefault
2429
serviceAccountName: olm-operator-serviceaccount
2530
priorityClassName: "system-cluster-critical"
2631
containers:
2732
- name: package-server-manager
33+
securityContext:
34+
allowPrivilegeEscalation: false
35+
capabilities:
36+
drop: ["ALL"]
2837
command:
2938
- /bin/psm
3039
- start

manifests/0000_50_olm_07-collect-profiles.cronjob.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,19 @@ spec:
1313
spec:
1414
template:
1515
spec:
16+
securityContext:
17+
runAsNonRoot: true
18+
runAsUser: 65534
19+
seccompProfile:
20+
type: RuntimeDefault
1621
serviceAccountName: collect-profiles
1722
priorityClassName: openshift-user-critical
1823
containers:
1924
- name: collect-profiles
25+
securityContext:
26+
allowPrivilegeEscalation: false
27+
capabilities:
28+
drop: ["ALL"]
2029
image: quay.io/operator-framework/olm@sha256:de396b540b82219812061d0d753440d5655250c621c753ed1dc67d6154741607
2130
imagePullPolicy: IfNotPresent
2231
command:

manifests/0000_50_olm_07-olm-operator.deployment.ibm-cloud-managed.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ spec:
2121
annotations:
2222
target.workload.openshift.io/management: '{"effect": "PreferredDuringScheduling"}'
2323
spec:
24+
securityContext:
25+
runAsNonRoot: true
26+
runAsUser: 65534
27+
seccompProfile:
28+
type: RuntimeDefault
2429
serviceAccountName: olm-operator-serviceaccount
2530
volumes:
2631
- name: srv-cert
@@ -31,6 +36,10 @@ spec:
3136
secretName: pprof-cert
3237
containers:
3338
- name: olm-operator
39+
securityContext:
40+
allowPrivilegeEscalation: false
41+
capabilities:
42+
drop: ["ALL"]
3443
volumeMounts:
3544
- name: srv-cert
3645
mountPath: "/srv-cert"

manifests/0000_50_olm_07-olm-operator.deployment.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ spec:
2121
annotations:
2222
target.workload.openshift.io/management: '{"effect": "PreferredDuringScheduling"}'
2323
spec:
24+
securityContext:
25+
runAsNonRoot: true
26+
runAsUser: 65534
27+
seccompProfile:
28+
type: RuntimeDefault
2429
serviceAccountName: olm-operator-serviceaccount
2530
volumes:
2631
- name: srv-cert
@@ -31,6 +36,10 @@ spec:
3136
secretName: pprof-cert
3237
containers:
3338
- name: olm-operator
39+
securityContext:
40+
allowPrivilegeEscalation: false
41+
capabilities:
42+
drop: ["ALL"]
3443
volumeMounts:
3544
- name: srv-cert
3645
mountPath: "/srv-cert"

manifests/0000_50_olm_08-catalog-operator.deployment.ibm-cloud-managed.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ spec:
2121
annotations:
2222
target.workload.openshift.io/management: '{"effect": "PreferredDuringScheduling"}'
2323
spec:
24+
securityContext:
25+
runAsNonRoot: true
26+
runAsUser: 65534
27+
seccompProfile:
28+
type: RuntimeDefault
2429
serviceAccountName: olm-operator-serviceaccount
2530
volumes:
2631
- name: srv-cert
@@ -31,6 +36,10 @@ spec:
3136
secretName: pprof-cert
3237
containers:
3338
- name: catalog-operator
39+
securityContext:
40+
allowPrivilegeEscalation: false
41+
capabilities:
42+
drop: ["ALL"]
3443
volumeMounts:
3544
- name: srv-cert
3645
mountPath: "/srv-cert"

manifests/0000_50_olm_08-catalog-operator.deployment.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ spec:
2121
annotations:
2222
target.workload.openshift.io/management: '{"effect": "PreferredDuringScheduling"}'
2323
spec:
24+
securityContext:
25+
runAsNonRoot: true
26+
runAsUser: 65534
27+
seccompProfile:
28+
type: RuntimeDefault
2429
serviceAccountName: olm-operator-serviceaccount
2530
volumes:
2631
- name: srv-cert
@@ -31,6 +36,10 @@ spec:
3136
secretName: pprof-cert
3237
containers:
3338
- name: catalog-operator
39+
securityContext:
40+
allowPrivilegeEscalation: false
41+
capabilities:
42+
drop: ["ALL"]
3443
volumeMounts:
3544
- name: srv-cert
3645
mountPath: "/srv-cert"

0 commit comments

Comments
 (0)