generated by scripts/update-pycodestyle.sh in main repo
This commit is contained in:
parent
a6a627325b
commit
982de11392
@ -15,4 +15,4 @@
|
||||
from .config_exception import ConfigException
|
||||
from .incluster_config import load_incluster_config
|
||||
from .kube_config import (list_kube_config_contexts, load_kube_config,
|
||||
new_client_from_config, load_kube_config_from_dict)
|
||||
load_kube_config_from_dict, new_client_from_config)
|
||||
|
||||
@ -688,6 +688,7 @@ class KubeConfigMerger:
|
||||
yaml.safe_dump(self.config_files[path], f,
|
||||
default_flow_style=False)
|
||||
|
||||
|
||||
def _get_kube_config_loader_for_yaml_file(
|
||||
filename, persist_config=False, **kwargs):
|
||||
return _get_kube_config_loader(
|
||||
@ -695,6 +696,7 @@ def _get_kube_config_loader_for_yaml_file(
|
||||
persist_config=persist_config,
|
||||
**kwargs)
|
||||
|
||||
|
||||
def _get_kube_config_loader(
|
||||
filename=None,
|
||||
config_dict=None,
|
||||
@ -719,6 +721,7 @@ def _get_kube_config_loader(
|
||||
config_base_path=None,
|
||||
**kwargs)
|
||||
|
||||
|
||||
def list_kube_config_contexts(config_file=None):
|
||||
|
||||
if config_file is None:
|
||||
@ -757,9 +760,10 @@ def load_kube_config(config_file=None, context=None,
|
||||
else:
|
||||
loader.load_and_set(client_configuration)
|
||||
|
||||
|
||||
def load_kube_config_from_dict(config_dict, context=None,
|
||||
client_configuration=None,
|
||||
persist_config=True):
|
||||
client_configuration=None,
|
||||
persist_config=True):
|
||||
"""Loads authentication and cluster information from config_dict file
|
||||
and stores them in kubernetes.client.configuration.
|
||||
|
||||
@ -788,6 +792,7 @@ def load_kube_config_from_dict(config_dict, context=None,
|
||||
else:
|
||||
loader.load_and_set(client_configuration)
|
||||
|
||||
|
||||
def new_client_from_config(
|
||||
config_file=None,
|
||||
context=None,
|
||||
|
||||
@ -1380,6 +1380,7 @@ class TestKubeConfigLoader(BaseTestCase):
|
||||
config_dict=self.TEST_KUBE_CONFIG)
|
||||
self.assertIsNone(actual._config_persister)
|
||||
|
||||
|
||||
class TestKubernetesClientConfiguration(BaseTestCase):
|
||||
# Verifies properties of kubernetes.client.Configuration.
|
||||
# These tests guard against changes to the upstream configuration class,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user