Skip to content

Commit

Permalink
Run preinstall job as non-root (#14)
Browse files Browse the repository at this point in the history
* Run preinstall job as non-root
  • Loading branch information
fhielpos authored Oct 10, 2023
1 parent f47185a commit 31709d3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

- Run preinstall job as non-root.

## [0.0.1] - 2023-10-05

- First release of the Kyverno Policy Operator App.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ spec:
securityContext:
seccompProfile:
type: RuntimeDefault
runAsNonRoot: true
runAsUser: 65534
runAsGroup: 65534
tolerations:
Expand All @@ -44,8 +45,14 @@ spec:
seccompProfile:
type: RuntimeDefault
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
privileged: false
runAsNonRoot: true
runAsUser: 65534
runAsGroup: 65534
capabilities:
drop:
- ALL
volumeMounts:
{{- range $path, $_ := .Files.Glob "crd/**" }}
- name: {{ $path | base | trimSuffix ".yaml" }}
Expand Down

0 comments on commit 31709d3

Please sign in to comment.