Clarify which types of lists are replaced (#14149)

by kubectl apply.

The docs imply that lists whose elements are all primitives
are replaced by the applied config instead of being updated.
This PR states that explicitly for clarity.
This commit is contained in:
David Xia
2019-05-03 20:03:40 -04:00
committed by Kubernetes Prow Robot
parent 0e7e694fba
commit b17d809a4c
@@ -585,13 +585,13 @@ Fields that represent maps are merged by comparing each of the subfields or elem
Merging changes to a list uses one of three strategies:
* Replace the list.
* Replace the list if all its elements are primitives.
* Merge individual elements in a list of complex elements.
* Merge a list of primitive elements.
The choice of strategy is made on a per-field basis.
#### Replace the list
#### Replace the list if all its elements are primitives
Treat the list the same as a primitive field. Replace or delete the
entire list. This preserves ordering.