fix: ansible 2.19: calico resources final evaluation (#13503)

The bgp changes are a bit verbose, because I chose to reproduce the
exact semantics of the current code, so that the manifest handed to
calicoctl does not contain unset fields (instead of just using defaults
value).

It would be more readable to just accept default value in the
manifests, but might be a problem if there is other writer of the same
Calico resources.
This commit is contained in:
Max Gautier
2026-09-15 08:55:22 +00:00
committed by GitHub
parent 53a30aea58
commit 5af06acee1
3 changed files with 95 additions and 133 deletions
@@ -241,9 +241,6 @@ cilium_identity_allocation_mode: crd
# https://docs.cilium.io/en/stable/concepts/networking/ipam/
cilium_ipam_mode: cluster-pool
# Determines if calico_rr group exists
peer_with_calico_rr: "{{ 'calico_rr' in groups and groups['calico_rr'] | length > 0 }}"
# Choose data store type for calico: "etcd" or "kdd" (kubernetes datastore)
calico_datastore: "kdd"