mirror of
https://github.com/falcosecurity/falco.git
synced 2025-10-22 03:49:36 +00:00
Use falcoctl 0.0.4+ tests for space/dash psp names
Use falcoctl, which properly handles psp names containing spaces/dashes. Also add tests that verify that the resulting rules are valid. Signed-off-by: Mark Stemm <mark.stemm@gmail.com>
This commit is contained in:
committed by
Leo Di Donato
parent
5c61276695
commit
daec9cb30d
8
test/psps/privileged_name_with_dashes.yaml
Normal file
8
test/psps/privileged_name_with_dashes.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
apiVersion: policy/v1beta1
|
||||
kind: PodSecurityPolicy
|
||||
metadata:
|
||||
annotations:
|
||||
falco-rules-psp-images: "[nginx]"
|
||||
name: no-privileged
|
||||
spec:
|
||||
privileged: false
|
8
test/psps/privileged_name_with_spaces.yaml
Normal file
8
test/psps/privileged_name_with_spaces.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
apiVersion: policy/v1beta1
|
||||
kind: PodSecurityPolicy
|
||||
metadata:
|
||||
annotations:
|
||||
falco-rules-psp-images: "[nginx]"
|
||||
name: no privileged
|
||||
spec:
|
||||
privileged: false
|
Reference in New Issue
Block a user