File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -60,8 +60,6 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY'
60
60
# Defining host is optional and default to http://localhost
61
61
configuration.host = " http://localhost"
62
62
63
- # Defining host is optional and default to http://localhost
64
- configuration.host = " http://localhost"
65
63
# Enter a context with an instance of the API kubernetes.client
66
64
with kubernetes.client.ApiClient(configuration) as api_client:
67
65
# Create an instance of the API class
Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ def load_config(**kwargs):
28
28
then check if the KUBE_CONFIG_DEFAULT_LOCATION exists
29
29
If neither exists, it will fall back to load_incluster_config
30
30
and inform the user accordingly.
31
-
32
31
:param kwargs: A combination of all possible kwargs that
33
32
can be passed to either load_kube_config or
34
33
load_incluster_config functions.
@@ -40,12 +39,10 @@ def load_config(**kwargs):
40
39
load_kube_config (** kwargs )
41
40
elif exists (expanduser (KUBE_CONFIG_DEFAULT_LOCATION )):
42
41
load_kube_config (** kwargs )
43
- elif "config_dict" in kwargs :
44
- load_kube_config_from_dict (** kwargs )
45
42
else :
46
43
print (
47
- "config_file not provided and "
44
+ "kube_config_path not provided and "
48
45
"default location ({0}) does not exist. "
49
46
"Using inCluster Config. "
50
47
"This might not work." .format (KUBE_CONFIG_DEFAULT_LOCATION ))
51
- load_incluster_config (** kwargs )
48
+ load_incluster_config (** kwargs )
You can’t perform that action at this time.
0 commit comments