Skip to content

Commit 3c5d6fa

Browse files
make clusterctl in tiltprepare
1 parent 825da0b commit 3c5d6fa

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -972,7 +972,7 @@ clean-bin: ## Remove all generated binaries
972972
rm -rf $(TOOLS_BIN_DIR)
973973

974974
.PHONY: clean-tilt
975-
clean-tilt: ## Remove all files generated by Tilt
975+
clean-tilt: clean-charts clean-kind ## Remove all files generated by Tilt
976976
rm -rf ./.tiltbuild
977977
rm -rf ./controlplane/kubeadm/.tiltbuild
978978
rm -rf ./bootstrap/kubeadm/.tiltbuild

Tiltfile

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,6 @@ addons = {
129129
},
130130
}
131131

132-
def ensure_clusterctl():
133-
local("make clusterctl")
134-
135132
# Reads a provider's tilt-provider.json file and merges it into the providers map.
136133
# A list of dictionaries is also supported by enclosing it in brackets []
137134
# An example file looks like this:
@@ -494,7 +491,7 @@ def deploy_observability():
494491
)
495492

496493
def prepare_all():
497-
tools_arg = "--tools kustomize,envsubst "
494+
tools_arg = "--tools kustomize,envsubst,clusterctl "
498495
tilt_settings_file_arg = "--tilt-settings-file " + tilt_file
499496

500497
cmd = "make -B tilt-prepare && ./hack/tools/bin/tilt-prepare {tools_arg}{tilt_settings_file_arg}".format(
@@ -629,8 +626,6 @@ def deploy_cluster_template(template_name, label, filename, substitutions):
629626
# Actual work happens here
630627
##############################
631628

632-
ensure_clusterctl()
633-
634629
include_user_tilt_files()
635630

636631
load_provider_tiltfiles()

0 commit comments

Comments
 (0)