From 82ad259fee929f139cedfa3e4da786326b4a4c56 Mon Sep 17 00:00:00 2001 From: Darshan Jain Date: Fri, 14 Aug 2026 19:17:05 +0530 Subject: [PATCH] fix: remove redundant find_kraken_node() call that adds ~7s to startup (#1566) (#1567) The call on line 274 fetches every pod across all namespaces via list_pod_for_all_namespaces() to look for a kraken-deployment pod, but the return value is discarded and the method has no side effects. list_killable_nodes() in krkn-lib already calls find_kraken_node() internally when node scenarios actually run, making this startup call purely redundant. Signed-off-by: ddjain Co-authored-by: Cursor Co-authored-by: Paige Patton <64206430+paigerube14@users.noreply.github.com> --- run_kraken.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/run_kraken.py b/run_kraken.py index 1c7b07e5..00f68fa5 100644 --- a/run_kraken.py +++ b/run_kraken.py @@ -270,9 +270,6 @@ def main(options, command: Optional[str], out: Optional[dict] = None) -> int: distribution = "openshift" logging.info("Detected cluster platform: %s" % (distribution)) - # find node kraken might be running on - kubecli.find_kraken_node() - # Set up kraken url to track signal if not 0 <= int(port) <= 65535: logging.error("%s isn't a valid port number, please check" % (port))