INNER CODE UNIT · Python

repo_root

timothystewart6/k3s-ansible · .github/scripts/test-cilium-bgp-manifest.py:21

def repo_root():
    return subprocess.check_output(
        ["git", "rev-parse", "--show-toplevel"], text=True
    ).strip()


def fail(message):
    raise SystemExit("Cilium BGP manifest test failed: " + message)


def render(env, extra_vars):
    base_vars = {
        "cilium_bgp_my_asn": "64513",
        "cilium_bgp_peer_asn": "64512",
        "cilium_bgp_peer_address": "192.168.30.1",
        "cilium_exportPodCIDR": True,
        "cilium_bgp_lb_cidr": "192.168.31.0/24",
    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…