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:
Reddy, Hemachandra (hr858f) 2021-07-13 16:23:57 -05:00 committed by Hemachandra Reddy
parent 7e4710e9b3
commit 1e30965e54
2 changed files with 16 additions and 0 deletions

View File

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

View File

@ -0,0 +1,4 @@
# Prevent policies from being deployed into downstream
resources:
- cleanup-calico-policy.yaml