Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1232 from ArchangelX360/ArchangelX360/docs_array_…
Browse files Browse the repository at this point in the history
…override

docs: adding documentation to add an array element using overrides
  • Loading branch information
k8s-ci-robot authored May 21, 2020
2 parents 6386f4e + 70f80c8 commit de2e0a9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/userguide.md
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,11 @@ spec:
# Ensure an annotation with key "foo" does not exist
- path: "/metadata/annotations/foo"
op: "remove"
# Adds an argument `-q` at index 0 of the args list
# this will obviously shift the existing arguments, if any
- path: "/spec/template/spec/containers/0/args/0"
op: "add"
value: "-q"
```
### Overriding retained fields
Expand Down

0 comments on commit de2e0a9

Please sign in to comment.