def helm_template()

in hack/validate_tekton.py [0:0]


def helm_template(config, output_file):
    with tempfile.NamedTemporaryFile() as temp:
        with open(temp.name, "w") as values:
            values.write(config)
        helm_cmd = f"helm template release-name -f {temp.name} ./charts/pipelines-library --namespace=ns > {output_file}"
        try:
            check_output(helm_cmd, shell=True)
        except CalledProcessError as e:
            print(f"Error: Helm template command failed. {e}")
            sys.exit(1)