1
0
Fork 0
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:
shuting 2023-04-04 17:46:58 +08:00 committed by GitHub
parent 72e864fbca
commit 9bca7b36b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 8 deletions

View file

@ -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

View file

@ -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: