def __new__()

in src/hyperpod_cli/clients/kubernetes_client.py [0:0]


    def __new__(cls, is_get_capacity: bool = False) -> "KubernetesClient":
        if cls._instance is None:
            cls._instance = super(KubernetesClient, cls).__new__(cls)
            config.load_kube_config(
                config_file=KUBE_CONFIG_PATH
                if not is_get_capacity
                else TEMP_KUBE_CONFIG_FILE
            )  # or config.load_incluster_config() for in-cluster config
            cls._instance._kube_client = client.ApiClient()
        return cls._instance