@@ -688,13 +688,15 @@ def save_config(self, path):
688688 yaml .safe_dump (self .config_files [path ], f ,
689689 default_flow_style = False )
690690
691+
691692def _get_kube_config_loader_for_yaml_file (
692693 filename , persist_config = False , ** kwargs ):
693694 return _get_kube_config_loader (
694695 filename = filename ,
695696 persist_config = persist_config ,
696697 ** kwargs )
697698
699+
698700def _get_kube_config_loader (
699701 filename = None ,
700702 config_dict = None ,
@@ -719,6 +721,7 @@ def _get_kube_config_loader(
719721 config_base_path = None ,
720722 ** kwargs )
721723
724+
722725def list_kube_config_contexts (config_file = None ):
723726
724727 if config_file is None :
@@ -757,9 +760,10 @@ def load_kube_config(config_file=None, context=None,
757760 else :
758761 loader .load_and_set (client_configuration )
759762
763+
760764def load_kube_config_from_dict (config_dict , context = None ,
761- client_configuration = None ,
762- persist_config = True ):
765+ client_configuration = None ,
766+ persist_config = True ):
763767 """Loads authentication and cluster information from config_dict file
764768 and stores them in kubernetes.client.configuration.
765769
@@ -788,6 +792,7 @@ def load_kube_config_from_dict(config_dict, context=None,
788792 else :
789793 loader .load_and_set (client_configuration )
790794
795+
791796def new_client_from_config (
792797 config_file = None ,
793798 context = None ,
0 commit comments