def run_helm_template()

in hack/images/update_image_list.py [0:0]


def run_helm_template():
    """Run 'helm template' and return the output as a string."""
    command = f"helm template {HELM_RELEASE_NAME} {HELM_CHART_PATH}"
    result = subprocess.run(command, shell=True, capture_output=True, text=True)
    if result.returncode != 0:
        print(f"Error running helm template: {result.stderr}")
        raise Exception("Failed to run helm template")
    return result.stdout