From 3e21efe677ec1529bd11a25bed257a9a61b48f25 Mon Sep 17 00:00:00 2001 From: fabriziopandini Date: Tue, 5 Dec 2023 11:16:32 +0100 Subject: [PATCH] fix variables names in Tiltfile --- Tiltfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Tiltfile b/Tiltfile index 1ee422acdee2..8dcce208a875 100644 --- a/Tiltfile +++ b/Tiltfile @@ -541,11 +541,11 @@ def deploy_templates(filename, label, substitutions): basename = os.path.basename(filename) if basename.endswith(".yaml"): if basename.startswith("clusterclass-"): - template_name = basename.replace("clusterclass-", "").replace(".yaml", "") - deploy_clusterclass(template_name, label, filename, substitutions) + clusterclass_name = basename.replace("clusterclass-", "").replace(".yaml", "") + deploy_clusterclass(clusterclass_name, label, filename, substitutions) elif basename.startswith("cluster-template-"): - clusterclass_name = basename.replace("cluster-template-", "").replace(".yaml", "") - deploy_cluster_template(clusterclass_name, label, filename, substitutions) + template_name = basename.replace("cluster-template-", "").replace(".yaml", "") + deploy_cluster_template(template_name, label, filename, substitutions) def deploy_clusterclass(clusterclass_name, label, filename, substitutions): apply_clusterclass_cmd = "cat " + filename + " | " + envsubst_cmd + " | " + kubectl_cmd + " apply --namespace=$NAMESPACE -f - && echo \"ClusterClass created from\'" + filename + "\', don't forget to delete\n\""