Skip to content

Commit 4e9fafe

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 4e9fafe

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

manifests/09_deployment.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,12 @@ 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:
27-
runAsNonRoot: true
28-
runAsUser: 65534
2928
seccompProfile:
3029
type: RuntimeDefault
3130
serviceAccountName: openshift-controller-manager-operator

0 commit comments

Comments
 (0)