Skip to content

Commit 843bbe0

Browse files
committed
Apply review comments
1 parent 628acb2 commit 843bbe0

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

src/kube_galaxy/cmd/status.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ def _print_dependency_status() -> None:
2727
info("Dependencies:")
2828
deps = {
2929
"kubectl": _check_command("kubectl"),
30-
"kubeadm": _check_command("kubeadm"),
3130
"spread": _check_command("spread"),
3231
}
3332
print_dict(deps)
@@ -43,10 +42,6 @@ def _print_cluster_context() -> None:
4342
try:
4443
context = get_context()
4544
info(f"Active Cluster: {context}")
46-
except ClusterError:
47-
info("Active Cluster: error checking")
48-
49-
try:
5045
nodes_output = get_nodes()
5146
if nodes_output:
5247
lines = nodes_output.strip().split("\n")
@@ -55,7 +50,7 @@ def _print_cluster_context() -> None:
5550
if line:
5651
info(f" {line}")
5752
except ClusterError:
58-
pass
53+
info("Active Cluster: error checking")
5954

6055

6156
def _verify_cluster_health(timeout: int) -> None:
@@ -86,12 +81,6 @@ def _check_command(cmd: str) -> str:
8681
capture_output=True,
8782
check=False,
8883
)
89-
elif cmd == "kubeadm":
90-
result = run(
91-
[cmd, "version"],
92-
capture_output=True,
93-
check=False,
94-
)
9584
else:
9685
result = run(
9786
[cmd, "--version"],

0 commit comments

Comments
 (0)