File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ import os
3131from kubernetes import client, config
3232
3333# Configs can be set in Configuration class directly or using helper utility
34- config.load_kube_config(os.path.join(os.path.expanduser(' ~' ), ' .kube' , ' config' )
34+ config.load_kube_config(os.path.join(os.path.expanduser(' ~' ), ' .kube' , ' config' ))
3535
3636v1= client.CoreV1Api()
3737print (" Listing pods with their IPs:" )
@@ -48,7 +48,7 @@ import os
4848from kubernetes import client, config, watch
4949
5050# Configs can be set in Configuration class directly or using helper utility
51- config.load_kube_config(os.path.join(os.path.expanduser(' ~' ), ' .kube' , ' config' )
51+ config.load_kube_config(os.path.join(os.path.expanduser(' ~' ), ' .kube' , ' config' ))
5252
5353v1 = client.CoreV1Api()
5454count = 10
Original file line number Diff line number Diff line change 2020def main ():
2121 # Configs can be set in Configuration class directly or using helper
2222 # utility
23- config .load_kube_config (os .path .join (os .path .expanduser ('~' ), '.kube' , 'config' )
23+ config .load_kube_config (
24+ os .path .join (os .path .expanduser ('~' ), '.kube' , 'config' ))
2425
2526 v1 = client .CoreV1Api ()
2627 print ("Listing pods with their IPs:" )
Original file line number Diff line number Diff line change 2020def main ():
2121 # Configs can be set in Configuration class directly or using helper
2222 # utility
23- config .load_kube_config (os .path .join (os .path .expanduser ('~' ), '.kube' , 'config' )
23+ config .load_kube_config (
24+ os .path .join (os .path .expanduser ('~' ), '.kube' , 'config' ))
2425
2526 v1 = client .CoreV1Api ()
2627 count = 10
Original file line number Diff line number Diff line change 2020def main ():
2121 # Configs can be set in Configuration class directly or using helper
2222 # utility
23- config .load_kube_config (os .path .join (os .path .expanduser ('~' ), '.kube' , 'config' )
23+ config .load_kube_config (
24+ os .path .join (os .path .expanduser ('~' ), '.kube' , 'config' ))
2425
2526 print ("Supported APIs (* is preferred version):" )
2627 print ("%-20s %s" %
You can’t perform that action at this time.
0 commit comments