Skip to content

Commit cd53206

Browse files
committed
tilt: fix build_engine setting when using podman
Following aa18c06 the podman detection has been moved below the `default_build_engine` variable usage, breaking podman support. This fix podman support by setting the `build_engine` directly instead of using a `default_build_engine` variable. Signed-off-by: Benjamin Gentil <[email protected]>
1 parent a301f20 commit cd53206

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Tiltfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
envsubst_cmd = "./hack/tools/bin/envsubst"
44
clusterctl_cmd = "./bin/clusterctl"
55
kubectl_cmd = "kubectl"
6-
default_build_engine = "docker"
76
kubernetes_version = "v1.27.3"
87

98
load("ext://uibutton", "cmd_button", "location", "text_input")
@@ -15,7 +14,7 @@ settings = {
1514
"enable_providers": ["docker"],
1615
"kind_cluster_name": os.getenv("CAPI_KIND_CLUSTER_NAME", "capi-test"),
1716
"debug": {},
18-
"build_engine": default_build_engine,
17+
"build_engine": "docker",
1918
}
2019

2120
# global settings
@@ -34,7 +33,7 @@ if str(local("command -v " + kubectl_cmd + " || true", quiet = True)) == "":
3433

3534
# detect if docker images should be built using podman
3635
if "Podman Engine" in str(local("docker version || podman version", quiet = True)):
37-
default_build_engine = "podman"
36+
settings["build_engine"] = "podman"
3837

3938
os_name = str(local("go env GOOS")).rstrip("\n")
4039
os_arch = str(local("go env GOARCH")).rstrip("\n")

0 commit comments

Comments
 (0)