Skip to content

Commit

Permalink
Merge pull request #9820 from sbueringer/pr-tilt-show-default-template
Browse files Browse the repository at this point in the history
🐛Tilt: Show default cluster-template
  • Loading branch information
k8s-ci-robot committed Dec 6, 2023
2 parents f330c6e + c4f789b commit 42e88d6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,9 @@ def deploy_templates(filename, label, substitutions):
elif basename.startswith("cluster-template-"):
template_name = basename.replace("cluster-template-", "").replace(".yaml", "")
deploy_cluster_template(template_name, label, filename, substitutions)
elif basename == "cluster-template.yaml":
template_name = "default"
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\""
Expand Down

0 comments on commit 42e88d6

Please sign in to comment.