Skip to content

Commit 9cd9b4d

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 9cd9b4d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

manifests/09_deployment.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,16 @@ 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
30+
runAsGroup: 1000
31+
fsGroup: 1000
2932
seccompProfile:
3033
type: RuntimeDefault
3134
serviceAccountName: openshift-controller-manager-operator

0 commit comments

Comments
 (0)