Merge pull request #53 from kubernetes-incubator/fix
Fix examples syntax error
This commit is contained in:
commit
812125f9f2
@ -31,7 +31,7 @@ import os
|
||||
from kubernetes import client, config
|
||||
|
||||
# Configs can be set in Configuration class directly or using helper utility
|
||||
config.load_kube_config(os.path.join(os.path.expanduser('~'), '.kube', 'config')
|
||||
config.load_kube_config(os.path.join(os.path.expanduser('~'), '.kube', 'config'))
|
||||
|
||||
v1=client.CoreV1Api()
|
||||
print("Listing pods with their IPs:")
|
||||
@ -48,7 +48,7 @@ import os
|
||||
from kubernetes import client, config, watch
|
||||
|
||||
# Configs can be set in Configuration class directly or using helper utility
|
||||
config.load_kube_config(os.path.join(os.path.expanduser('~'), '.kube', 'config')
|
||||
config.load_kube_config(os.path.join(os.path.expanduser('~'), '.kube', 'config'))
|
||||
|
||||
v1 = client.CoreV1Api()
|
||||
count = 10
|
||||
|
||||
@ -20,7 +20,8 @@ from kubernetes import client, config
|
||||
def main():
|
||||
# Configs can be set in Configuration class directly or using helper
|
||||
# utility
|
||||
config.load_kube_config(os.path.join(os.path.expanduser('~'), '.kube', 'config')
|
||||
config.load_kube_config(
|
||||
os.path.join(os.path.expanduser('~'), '.kube', 'config'))
|
||||
|
||||
v1 = client.CoreV1Api()
|
||||
print("Listing pods with their IPs:")
|
||||
|
||||
@ -20,7 +20,8 @@ from kubernetes import client, config, watch
|
||||
def main():
|
||||
# Configs can be set in Configuration class directly or using helper
|
||||
# utility
|
||||
config.load_kube_config(os.path.join(os.path.expanduser('~'), '.kube', 'config')
|
||||
config.load_kube_config(
|
||||
os.path.join(os.path.expanduser('~'), '.kube', 'config'))
|
||||
|
||||
v1 = client.CoreV1Api()
|
||||
count = 10
|
||||
|
||||
@ -20,7 +20,8 @@ from kubernetes import client, config
|
||||
def main():
|
||||
# Configs can be set in Configuration class directly or using helper
|
||||
# utility
|
||||
config.load_kube_config(os.path.join(os.path.expanduser('~'), '.kube', 'config')
|
||||
config.load_kube_config(
|
||||
os.path.join(os.path.expanduser('~'), '.kube', 'config'))
|
||||
|
||||
print("Supported APIs (* is preferred version):")
|
||||
print("%-20s %s" %
|
||||
|
||||
Loading…
Reference in New Issue
Block a user