Skip to content

Commit 6c7235d

Browse files
committed
securely update deployment with patch_namespaced_deployment
1 parent c49db53 commit 6c7235d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/deployment_examples.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def update_deployment(api_instance, deployment):
5858
# Update container image
5959
deployment.container.image = "nginx:1.9.1"
6060
# Update the deployment
61-
api_response = api_instance.replace_namespaced_deployment(
61+
api_response = api_instance.patch_namespaced_deployment(
6262
name=DEPLOYMENT_NAME,
6363
namespace="default",
6464
body=deployment)

0 commit comments

Comments
 (0)