From 0dab121ef19192074d6ddc0a6d9a52242fa47a18 Mon Sep 17 00:00:00 2001 From: Ram Reddy Amanaganti Date: Mon, 23 Aug 2021 17:43:04 +0000 Subject: [PATCH] Reduced timeout value Changing default timeout to 180 seconds As 300 seconds was too long to wait Signed-off-by: Paul Myjavec --- kelpy/deployment.py | 2 +- kelpy/namespace.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kelpy/deployment.py b/kelpy/deployment.py index e46c4b3..81cefa8 100644 --- a/kelpy/deployment.py +++ b/kelpy/deployment.py @@ -55,7 +55,7 @@ def pod_selector(client, name, namespace="default"): return None -def delete(client, name, namespace="default", wait_for_timeout=300): +def delete(client, name, namespace="default", wait_for_timeout=180): try: response = client.delete_namespaced_deployment(name, namespace) except ApiException as e: diff --git a/kelpy/namespace.py b/kelpy/namespace.py index 4a6f16f..16cf3d4 100644 --- a/kelpy/namespace.py +++ b/kelpy/namespace.py @@ -40,7 +40,7 @@ def get(client, name): return None -def delete(client, name, wait_for_timeout=300): +def delete(client, name, wait_for_timeout=180): try: response = client.delete_namespace(name) except ApiException as e: