Skip to content

Commit

Permalink
Change xenit k8s psp rule to lowerCase (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
Edvin N authored Dec 7, 2022
1 parent 97d3212 commit 09f9aac
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
description: Requires the use of a read-only root file system by pod containers.
Corresponds to the `readOnlyRootFilesystem` field in a PodSecurityPolicy. For
more information, see https://kubernetes.io/docs/concepts/policy/pod-security-policy/#volumes-and-file-systems
name: k8spspreadonlyrootfilesystemXenit
name: k8spspreadonlyrootfilesystemxenit
spec:
crd:
spec:
Expand Down Expand Up @@ -48,7 +48,7 @@ spec:
startswith(img, prefix)
}
rego: |-
package k8spspreadonlyrootfilesystemXenit
package k8spspreadonlyrootfilesystemxenit
import data.lib.exempt_container.is_exempt
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: templates.gatekeeper.sh/v1
kind: ConstraintTemplate
metadata:
name: k8spspreadonlyrootfilesystemXenit
name: k8spspreadonlyrootfilesystemxenit
annotations:
description: >-
Requires the use of a read-only root file system by pod containers.
Expand Down
2 changes: 1 addition & 1 deletion library/constraints/read-only-root-filesystem/src.rego
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package k8spspreadonlyrootfilesystemXenit
package k8spspreadonlyrootfilesystemxenit

import data.lib.exempt_container.is_exempt

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package k8spspreadonlyrootfilesystemXenit
package k8spspreadonlyrootfilesystemxenit

test_input_container_not_readonlyrootfilesystem_allowed {
input := { "review": input_review}
Expand Down
4 changes: 2 additions & 2 deletions library/constraints/read-only-root-filesystem/template.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: templates.gatekeeper.sh/v1
kind: ConstraintTemplate
metadata:
name: k8spspreadonlyrootfilesystemXenit
name: k8spspreadonlyrootfilesystemxenit
annotations:
description: >-
Requires the use of a read-only root file system by pod containers. Corresponds to the `readOnlyRootFilesystem` field in a PodSecurityPolicy. For more information, see https://kubernetes.io/docs/concepts/policy/pod-security-policy/#volumes-and-file-systems
Expand All @@ -28,7 +28,7 @@ spec:
targets:
- target: admission.k8s.gatekeeper.sh
rego: |-
package k8spspreadonlyrootfilesystemXenit
package k8spspreadonlyrootfilesystemxenit
import data.lib.exempt_container.is_exempt
Expand Down

0 comments on commit 09f9aac

Please sign in to comment.