calico policy artifacts source of truth validation

The strategy is to develop a tool, that could validate/compare local user input (policies) with the deployment repository and can be called when applying the calico policies via airshipctl (with calicoctl image integrated).

Relates-To: #124

Change-Id: I4e7bb31afe84319e232be34df0b05c54092fd863
This commit is contained in:
sujeetch 2021-05-26 03:31:42 +00:00
parent f819f6c510
commit 2296ca666b
2 changed files with 8 additions and 0 deletions

View File

@ -2,6 +2,10 @@ apiVersion: projectcalico.org/v3
kind: GlobalNetworkPolicy
metadata:
name: hosts-ingress-rule
labels:
app.kubernetes.io/component: network-policy
app.kubernetes.io/part-of: calico
app.kubernetes.io/managed-by: calico
spec:
order: 0
selector: all()

View File

@ -2,6 +2,10 @@ apiVersion: airshipit.org/v1alpha1
kind: ReplacementTransformer
metadata:
name: networking-policy-replacements
labels:
app.kubernetes.io/component: network-policy
app.kubernetes.io/part-of: calico
app.kubernetes.io/managed-by: calico
annotations:
config.kubernetes.io/function: |-
container: