Merge pull request #846 from hajowieland/master

Enhancements for example3.py and example4.py
This commit is contained in:
Kubernetes Prow Robot 2019-07-25 11:40:09 -07:00 committed by GitHub
commit 8845beee0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ def main():
config.load_kube_config()
print("Supported APIs (* is preferred version):")
print("%-20s %s" %
print("%-40s %s" %
("core", ",".join(client.CoreApi().get_api_versions().versions)))
for api in client.ApisApi().get_api_versions().groups:
versions = []

View File

@ -32,7 +32,7 @@ def main():
# utility
config.load_kube_config(context=option)
print("Active host is %s" % configuration.host)
print("Active host is %s" % configuration.Configuration().host)
v1 = client.CoreV1Api()
print("Listing pods with their IPs:")