Skip to content

Commit f2c4d28

Browse files
authored
Merge pull request #35230 from Iceber/fix_retainKeys_example
the retainKeys strategy only works in the strategic merge patch
2 parents 290ad2a + 5d59e10 commit f2c4d28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/en/docs/tasks/manage-kubernetes-objects/update-api-object-kubectl-patch.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ spec:
309309
Patch your Deployment:
310310

311311
```shell
312-
kubectl patch deployment retainkeys-demo --type merge --patch-file patch-file-no-retainkeys.yaml
312+
kubectl patch deployment retainkeys-demo --type strategic --patch-file patch-file-no-retainkeys.yaml
313313
```
314314

315315
In the output, you can see that it is not possible to set `type` as `Recreate` when a value is defined for `spec.strategy.rollingUpdate`:

0 commit comments

Comments
 (0)