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

Commit 70f80c8

Browse files
author
Titouan Bion
committed
docs: adding documentation to add an array element using overrides
Related to #1224 Adding a value to an array could be confusing for users, an example in the docs could alleviate the confusion.
1 parent 96f89dc commit 70f80c8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/userguide.md

+5
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,11 @@ spec:
688688
# Ensure an annotation with key "foo" does not exist
689689
- path: "/metadata/annotations/foo"
690690
op: "remove"
691+
# Adds an argument `-q` at index 0 of the args list
692+
# this will obviously shift the existing arguments, if any
693+
- path: "/spec/template/spec/containers/0/args/0"
694+
op: "add"
695+
value: "-q"
691696
```
692697
693698
### Overriding retained fields

0 commit comments

Comments
 (0)