class_docstr: Factory class for creating kubernetes API client.
class_docstr_tok: ["Factory","class","for","creating","kubernetes","API","client","."]
docstr: Whether current environment is inside the kubernetes cluster.
docstr_tok: ["Whether","current","environment","is","inside","the","kubernetes","cluster","."]
code: def inside_cluster(self):
      """Whether current environment is inside the kubernetes cluster."""
      if not self._config_loaded:
          self._LoadConfig()
      return self._inside_cluster
  
imports: import datetime
  import enum
  import os
  import re
  import time
  from typing import Callable, Dict, List, Optional
  from absl import logging
  from kubernetes import client
  from kubernetes import config
label_desc: Use image node_id 2 for calling the _KubernetesClientFactory obj's underlying member method code with example usage: obj.inside_cluster() and returns: self