Skip to content

Commit 078c064

Browse files
committed
fix: container has runAsNonRoot and image will run as root
1 parent 943c7e4 commit 078c064

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: config/manager/manager.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ spec:
2626
containers:
2727
- name: manager
2828
securityContext:
29+
runAsUser: 65534
2930
readOnlyRootFilesystem: true
30-
runAsNonRoot: true
3131
seccompProfile:
3232
type: RuntimeDefault
3333
allowPrivilegeEscalation: false

Diff for: deploy/helm/nfd-operator/templates/deployment.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ spec:
7575
drop:
7676
- ALL
7777
readOnlyRootFilesystem: true
78-
runAsNonRoot: true
78+
runAsUser: 65534
7979
seccompProfile:
8080
type: RuntimeDefault
8181
terminationGracePeriodSeconds: 10

0 commit comments

Comments
 (0)