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 20
20
def main ():
21
21
# Configs can be set in Configuration class directly or using helper
22
22
# utility
23
- config .load_kube_config (os .environ [ "HOME" ] + '/ .kube/ config' )
23
+ config .load_kube_config (os .path . join ( os . path . expanduser ( '~' ), ' .kube' , ' config' )
24
24
25
25
v1 = client .CoreV1Api ()
26
26
print ("Listing pods with their IPs:" )
Original file line number Diff line number Diff line change 20
20
def main ():
21
21
# Configs can be set in Configuration class directly or using helper
22
22
# utility
23
- config .load_kube_config (os .environ [ "HOME" ] + '/ .kube/ config' )
23
+ config .load_kube_config (os .path . join ( os . path . expanduser ( '~' ), ' .kube' , ' config' )
24
24
25
25
v1 = client .CoreV1Api ()
26
26
count = 10
Original file line number Diff line number Diff line change 20
20
def main ():
21
21
# Configs can be set in Configuration class directly or using helper
22
22
# utility
23
- config .load_kube_config (os .environ [ "HOME" ] + '/ .kube/ config' )
23
+ config .load_kube_config (os .path . join ( os . path . expanduser ( '~' ), ' .kube' , ' config' )
24
24
25
25
print ("Supported APIs (* is preferred version):" )
26
26
print ("%-20s %s" %
You can’t perform that action at this time.
0 commit comments