Skip to content

Commit

Permalink
Restore kube-linter rule (#89)
Browse files Browse the repository at this point in the history
* Revert "Revert readOnlyRootFilesystem for image_pruner (#65)"

This reverts commit 2b2e5a5.

* Revert "Disable no-read-only-root-fs kube-linter rule for image pruner job (#77)"

This reverts commit de983aa.
  • Loading branch information
tkdchen authored Jan 12, 2024
1 parent 5778ca2 commit 889c0b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/registry_image_pruner/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ apiVersion: batch/v1
kind: CronJob
metadata:
name: image-pruner-cronjob
annotations:
ignore-check.kube-linter.io/no-read-only-root-fs: 'image pruner writes to disk'
spec:
schedule: "0 0 * * *"
concurrencyPolicy: Forbid
Expand Down Expand Up @@ -40,6 +38,8 @@ spec:
requests:
cpu: 150m
memory: 128Mi
securityContext:
readOnlyRootFilesystem: true
restartPolicy: OnFailure
securityContext:
runAsNonRoot: true
Expand Down

0 comments on commit 889c0b1

Please sign in to comment.