Skip to content

Commit

Permalink
Run operator as non-root
Browse files Browse the repository at this point in the history
- Run operator as non-root instead of a fixed UID. This fixes issues
  with OpenShift security context constraints.
- Regenerate bundle
  • Loading branch information
adambkaplan committed Nov 5, 2021
1 parent 0ea4e3d commit 593e4a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ spec:
securityContext:
allowPrivilegeEscalation: false
securityContext:
runAsUser: 65532
runAsNonRoot: true
serviceAccountName: shipwright-operator
terminationGracePeriodSeconds: 10
permissions:
Expand Down
2 changes: 1 addition & 1 deletion config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ spec:
app: shipwright-operator
spec:
securityContext:
runAsUser: 65532
runAsNonRoot: true
containers:
- args:
- --leader-elect
Expand Down

0 comments on commit 593e4a0

Please sign in to comment.