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"
6
6
default_build_engine = "docker"
7
7
kubernetes_version = "v1.27.3"
8
8
9
- if str (local ("command -v " + kubectl_cmd + " || true" , quiet = True )) == "" :
10
- fail ("Required command '" + kubectl_cmd + "' not found in PATH" )
11
-
12
9
load ("ext://uibutton" , "cmd_button" , "location" , "text_input" )
13
10
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
-
18
11
# set defaults
19
12
version_settings (True , ">=0.30.8" )
20
13
@@ -36,6 +29,13 @@ os.putenv("CAPI_KIND_CLUSTER_NAME", settings.get("kind_cluster_name"))
36
29
37
30
allow_k8s_contexts (settings .get ("allowed_contexts" ))
38
31
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
+
39
39
os_name = str (local ("go env GOOS" )).rstrip ("\n " )
40
40
os_arch = str (local ("go env GOARCH" )).rstrip ("\n " )
41
41
Original file line number Diff line number Diff line change @@ -157,6 +157,9 @@ func main() {
157
157
// This makes it easier to see what clusterctl is doing and to debug it.
158
158
logf .SetLogger (logf .NewLogger (logf .WithThreshold (pointer .Int (5 ))))
159
159
160
+ // Set controller-runtime logger as well.
161
+ ctrl .SetLogger (klog .Background ())
162
+
160
163
klog .Infof ("[main] started\n " )
161
164
start := time .Now ()
162
165
You can’t perform that action at this time.
0 commit comments