Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
move docs
Browse files Browse the repository at this point in the history
Signed-off-by: Max Falk <[email protected]>
  • Loading branch information
gmdfalk committed Oct 19, 2023
1 parent 252fd64 commit 0cace6c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions clusterman/kubernetes/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
"""
Expand Down

0 comments on commit 0cace6c

Please sign in to comment.