Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6461e7c

Browse files
committed
Consolidate both examples for create deployments
1 parent b403562 commit 6461e7c

File tree

2 files changed

+1
-34
lines changed

2 files changed

+1
-34
lines changed

examples/create_deployment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def main():
3030
k8s_apps_v1 = client.AppsV1Api()
3131
resp = k8s_apps_v1.create_namespaced_deployment(
3232
body=dep, namespace="default")
33-
print("Deployment created. status='%s'" % str(resp.status))
33+
print("Deployment created. status='%s'" % resp.metadata.name)
3434

3535

3636
if __name__ == '__main__':

examples/create_deployment_from_yaml.py

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)