diff --git a/clusterman/kubernetes/util.py b/clusterman/kubernetes/util.py index 1266c9a42..d88f1b73b 100644 --- a/clusterman/kubernetes/util.py +++ b/clusterman/kubernetes/util.py @@ -54,7 +54,8 @@ class KubeApiClientWrapper: - + # CLUSTERMAN-812: By making client a class variable we are avoiding re-creating kubernetes + # client object multiple times ( due to call to reload_state which calls reload_client in return) _client = None def __init__(self, kubeconfig_path: str, client_class: Type) -> None: @@ -63,8 +64,6 @@ def __init__(self, kubeconfig_path: str, client_class: Type) -> None: :param str kubeconfig_path: k8s configuration path :param Type client_class: k8s client class to initialize """ - # By making client a class variable we are avoiding re-creating kubernetes - # client object multiple times ( due to call to reload_state which calls reload_client in return) if self._client is None: try: """