#!/bin/sh set -eux {{- $envAll := . }} {{ if empty .Values.conf.node.CALICO_IPV4POOL_CIDR }} {{ $_ := set .Values.conf.node "CALICO_IPV4POOL_CIDR" .Values.networking.podSubnet }} {{ end }} # An idempotent script for interacting with calicoctl to instantiate # peers, and manipulate calico settings that we must perform # post-deployment. CTL=/calicoctl # Generate configuration the way we want it to be, it doesn't matter # if it's already set, in that case Calico will no nothing. # BGPConfiguration: nodeToNodeMeshEnabled & asNumber $CTL apply -f - <