mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-31 03:45:17 +00:00
update test scenario and change rule to audit mode
This commit is contained in:
parent
a06313b11c
commit
ab2e671df5
2 changed files with 3 additions and 3 deletions
|
@ -9,7 +9,7 @@ metadata:
|
||||||
the container process to communicate with processes on the host. To avoid pod container from
|
the container process to communicate with processes on the host. To avoid pod container from
|
||||||
having visibility to host process space, validate that 'hostPID' and 'hostIPC' are set to 'false'.
|
having visibility to host process space, validate that 'hostPID' and 'hostIPC' are set to 'false'.
|
||||||
spec:
|
spec:
|
||||||
validationFailureAction: enforce
|
validationFailureAction: audit
|
||||||
rules:
|
rules:
|
||||||
- name: validate-host-pid-ipc
|
- name: validate-host-pid-ipc
|
||||||
match:
|
match:
|
||||||
|
|
|
@ -5,13 +5,13 @@ input:
|
||||||
expected:
|
expected:
|
||||||
validation:
|
validation:
|
||||||
policyresponse:
|
policyresponse:
|
||||||
policy: validate-hostpid-hostipc
|
policy: validate-host-pid-ipc
|
||||||
resource:
|
resource:
|
||||||
kind: Pod
|
kind: Pod
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
namespace: ''
|
namespace: ''
|
||||||
name: "nginx-with-hostpid"
|
name: "nginx-with-hostpid"
|
||||||
rules:
|
rules:
|
||||||
- name: validate-hostpid-hostipc
|
- name: validate-host-pid-ipc
|
||||||
type: Validation
|
type: Validation
|
||||||
success: false
|
success: false
|
Loading…
Add table
Reference in a new issue