potiuk commented on code in PR #37371:
URL: https://github.com/apache/airflow/pull/37371#discussion_r1486935587


##########
dev/breeze/src/airflow_breeze/commands/kubernetes_commands.py:
##########
@@ -1223,30 +1224,53 @@ def k9s(python: str, kubernetes_version: str, k9s_args: 
tuple[str, ...]):
     if not k9s_editor:
         env["K9S_EDITOR"] = env["EDITOR"]
     kubeconfig_file = get_kubeconfig_file(python=python, 
kubernetes_version=kubernetes_version)
-    result = run_command(
-        [
-            "docker",
-            "run",
-            "--rm",
-            "-it",
-            "--network",
-            "host",
-            "-e",
-            "EDITOR",
-            "-e",
-            "K9S_EDITOR",
-            "-v",
-            f"{kubeconfig_file}:/root/.kube/config",
-            "quay.io/derailed/k9s",
-            "--namespace",
-            HELM_AIRFLOW_NAMESPACE,
-            *k9s_args,
-        ],
-        env=env,
-        check=False,
-    )
-    if result.returncode != 0:
-        sys.exit(result.returncode)
+    # Until https://github.com/kubernetes-sigs/kind/pull/3511 is merged and 
released, running AMD images
+    # on ARM is broken with kind cluster running, so we need to run k9s 
directly on the host
+    arch, _ = get_host_architecture()
+    if arch != Architecture.ARM:
+        result = run_command(
+            [
+                "docker",
+                "run",
+                "--rm",
+                "-it",
+                "--network",
+                "host",
+                "-e",
+                "EDITOR",
+                "-e",
+                "K9S_EDITOR",
+                "-v",
+                f"{kubeconfig_file}:/root/.kube/config",
+                "quay.io/derailed/k9s",

Review Comment:
   Yeah. But good to use the dockerhub one :)
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to