mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
fix clone test (#6777)
Signed-off-by: ShutingZhao <shuting@nirmata.com>
This commit is contained in:
parent
72e864fbca
commit
9bca7b36b1
2 changed files with 16 additions and 8 deletions
|
@ -11,6 +11,17 @@ metadata:
|
|||
data:
|
||||
foo: bar
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: NetworkPolicy
|
||||
metadata:
|
||||
name: pol-clone-create-on-trigger-deletion-source-netowrkpolicy
|
||||
namespace: pol-clone-create-on-trigger-deletion-ns
|
||||
spec:
|
||||
podSelector: {}
|
||||
policyTypes:
|
||||
- Ingress
|
||||
- Egress
|
||||
---
|
||||
apiVersion: kyverno.io/v1
|
||||
kind: Policy
|
||||
metadata:
|
||||
|
@ -29,12 +40,9 @@ spec:
|
|||
generate:
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: NetworkPolicy
|
||||
name: pol-clone-create-on-trigger-deletion-netowrkpolicy
|
||||
name: pol-clone-create-on-trigger-deletion-target-netowrkpolicy
|
||||
namespace: pol-clone-create-on-trigger-deletion-ns
|
||||
synchronize: true
|
||||
data:
|
||||
spec:
|
||||
podSelector: {}
|
||||
policyTypes:
|
||||
- Ingress
|
||||
- Egress
|
||||
clone:
|
||||
namespace: pol-clone-create-on-trigger-deletion-ns
|
||||
name: pol-clone-create-on-trigger-deletion-source-netowrkpolicy
|
|
@ -1,7 +1,7 @@
|
|||
apiVersion: networking.k8s.io/v1
|
||||
kind: NetworkPolicy
|
||||
metadata:
|
||||
name: pol-clone-create-on-trigger-deletion-netowrkpolicy
|
||||
name: pol-clone-create-on-trigger-deletion-target-netowrkpolicy
|
||||
namespace: pol-clone-create-on-trigger-deletion-ns
|
||||
spec:
|
||||
policyTypes:
|
||||
|
|
Loading…
Reference in a new issue