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

Commit

Permalink
Add comments to explain changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Buffer0x7cd committed Aug 17, 2023
1 parent 54be776 commit a0d0419
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions clusterman/kubernetes/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@


class KubeApiClientWrapper:

_client = None

def __init__(self, kubeconfig_path: str, client_class: Type) -> None:
Expand All @@ -62,6 +63,9 @@ 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 a0d0419

Please sign in to comment.