Skip to content

Commit a5a825d

Browse files
committed
manifests: Use user namespace for the operator
The operator now uses hostUsers: false in the associated deployment. All relevant user and group IDs are set to 1000.
1 parent da1e14c commit a5a825d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

manifests/09_deployment.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,14 @@ spec:
1919
name: openshift-controller-manager-operator
2020
annotations:
2121
target.workload.openshift.io/management: '{"effect": "PreferredDuringScheduling"}'
22-
openshift.io/required-scc: nonroot-v2
22+
openshift.io/required-scc: restricted-v3
2323
labels:
2424
app: openshift-controller-manager-operator
2525
spec:
26+
hostUsers: false
2627
securityContext:
2728
runAsNonRoot: true
28-
runAsUser: 65534
29+
runAsUser: 1000
2930
seccompProfile:
3031
type: RuntimeDefault
3132
serviceAccountName: openshift-controller-manager-operator

0 commit comments

Comments
 (0)