Files
polaris/test/checks/notReadOnlyRootFilesystem/failure.pod.yaml
Cydnee Owens 1ede736971 update notReadOnlyRootFilesystem check (#543)
* update notReadOnlyRootFilesystem check

* remove run as user

* add pod level testing to notreadonlyrootFileSystem and update schema_test.go file

Co-authored-by: Robert Brennan <accounts@rbren.io>
2021-05-24 15:21:04 -07:00

14 lines
268 B
YAML

apiVersion: v1
kind: Pod
metadata:
name: nginx
labels:
env: test
spec:
securityContext:
readOnlyRootFilesystem: false
containers:
- securityContext:
readOnlyRootFilesystem: true
- securityContext:
readOnlyRootFilesystem: false