INNER CODE UNIT · Python

fail

timothystewart6/k3s-ansible · .github/scripts/test-cilium-envoy-toggle.py:35

def fail(message):
    raise SystemExit("Cilium Envoy toggle test failed: " + message)


def extract_install_command(path):
    """Return the command string for the 'Install Cilium' task.

    Walks both top-level tasks and tasks nested inside a `block`/`always`/
    `rescue` list, since the Cilium deploy steps are grouped under the
    'Prepare Cilium CLI on first master and deploy CNI' block.
    """
    with open(path, encoding="utf-8") as handle:
        doc = yaml.safe_load(handle)

    def find_command(tasks):
        for task in tasks:
            if not isinstance(task, dict):
                continue

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…