Add cleanup for Calico policy
This commit adds cleanup for Calico global network policy so it can be prevented from deploying downstream. Change-Id: I4cfdc555d1776fbafd49d69ba10f97402563abd2
This commit is contained in:
parent
7e4710e9b3
commit
1e30965e54
@ -0,0 +1,12 @@
|
||||
apiVersion: builtin
|
||||
kind: PatchTransformer
|
||||
metadata:
|
||||
name: delete-treasuremap-policy.yaml
|
||||
target:
|
||||
kind: GlobalNetworkPolicy
|
||||
patch: |
|
||||
apiVersion: not-important
|
||||
kind: not-important
|
||||
metadata:
|
||||
name: hosts-ingress-rule
|
||||
$patch: delete
|
@ -0,0 +1,4 @@
|
||||
# Prevent policies from being deployed into downstream
|
||||
|
||||
resources:
|
||||
- cleanup-calico-policy.yaml
|
Loading…
x
Reference in New Issue
Block a user