File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed 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 .environ [ "HOME" ] + '/ .kube/ config' )
23+ config .load_kube_config (os .path . join ( os . path . expanduser ( '~' ), ' .kube' , ' config' )
2424
2525 v1 = client .CoreV1Api ()
2626 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 .environ [ "HOME" ] + '/ .kube/ config' )
23+ config .load_kube_config (os .path . join ( os . path . expanduser ( '~' ), ' .kube' , ' config' )
2424
2525 v1 = client .CoreV1Api ()
2626 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 .environ [ "HOME" ] + '/ .kube/ config' )
23+ config .load_kube_config (os .path . join ( os . path . expanduser ( '~' ), ' .kube' , ' config' )
2424
2525 print ("Supported APIs (* is preferred version):" )
2626 print ("%-20s %s" %
You can’t perform that action at this time.
0 commit comments