File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed
Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -6,15 +6,8 @@ kubectl_cmd = "kubectl"
66default_build_engine = "docker"
77kubernetes_version = "v1.27.3"
88
9- if str (local ("command -v " + kubectl_cmd + " || true" , quiet = True )) == "" :
10- fail ("Required command '" + kubectl_cmd + "' not found in PATH" )
11-
129load ("ext://uibutton" , "cmd_button" , "location" , "text_input" )
1310
14- # detect if docker images should be built using podman
15- if "Podman Engine" in str (local ("docker version || podman version" , quiet = True )):
16- default_build_engine = "podman"
17-
1811# set defaults
1912version_settings (True , ">=0.30.8" )
2013
@@ -36,6 +29,13 @@ os.putenv("CAPI_KIND_CLUSTER_NAME", settings.get("kind_cluster_name"))
3629
3730allow_k8s_contexts (settings .get ("allowed_contexts" ))
3831
32+ if str (local ("command -v " + kubectl_cmd + " || true" , quiet = True )) == "" :
33+ fail ("Required command '" + kubectl_cmd + "' not found in PATH" )
34+
35+ # detect if docker images should be built using podman
36+ if "Podman Engine" in str (local ("docker version || podman version" , quiet = True )):
37+ default_build_engine = "podman"
38+
3939os_name = str (local ("go env GOOS" )).rstrip ("\n " )
4040os_arch = str (local ("go env GOARCH" )).rstrip ("\n " )
4141
Original file line number Diff line number Diff line change @@ -157,6 +157,9 @@ func main() {
157157 // This makes it easier to see what clusterctl is doing and to debug it.
158158 logf .SetLogger (logf .NewLogger (logf .WithThreshold (pointer .Int (5 ))))
159159
160+ // Set controller-runtime logger as well.
161+ ctrl .SetLogger (klog .Background ())
162+
160163 klog .Infof ("[main] started\n " )
161164 start := time .Now ()
162165
You can’t perform that action at this time.
0 commit comments