Skip to content

Commit 0f347df

Browse files
authored
Merge pull request #5590 from kinvolk/invidian/fix-tilt-k8s-contexts
🐛Tiltfile: use local_output after allow_k8s_contexts
2 parents 8ab546a + f9d7385 commit 0f347df

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Tiltfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@ load("ext://local_output", "local_output")
44

55
version_settings(True, ">=0.22.2")
66

7-
envsubst_cmd = "./hack/tools/bin/envsubst"
8-
kustomize_cmd = "./hack/tools/bin/kustomize"
9-
yq_cmd = "./hack/tools/bin/yq"
10-
os_name = local_output("go env GOOS")
11-
os_arch = local_output("go env GOARCH")
12-
137
settings = {
148
"deploy_cert_manager": True,
159
"preload_images_for_kind": True,
@@ -24,11 +18,17 @@ settings.update(read_json(
2418
default = {},
2519
))
2620

21+
allow_k8s_contexts(settings.get("allowed_contexts"))
22+
23+
envsubst_cmd = "./hack/tools/bin/envsubst"
24+
kustomize_cmd = "./hack/tools/bin/kustomize"
25+
yq_cmd = "./hack/tools/bin/yq"
26+
os_name = local_output("go env GOOS")
27+
os_arch = local_output("go env GOARCH")
28+
2729
if settings.get("trigger_mode") == "manual":
2830
trigger_mode(TRIGGER_MODE_MANUAL)
2931

30-
allow_k8s_contexts(settings.get("allowed_contexts"))
31-
3232
default_registry(settings.get("default_registry"))
3333

3434
always_enable_providers = ["core"]

0 commit comments

Comments
 (0)