Skip to content

Commit

Permalink
Add note on atomic fields
Browse files Browse the repository at this point in the history
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
  • Loading branch information
somtochiama committed Dec 7, 2022
1 parent a0c79e1 commit 3ad92a2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/spec/v1beta2/kustomization.md
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,11 @@ kustomize.toolkit.fluxcd.io/ssa: merge
**Note:** The fields defined in manifests will always be overridden,
the above procedure works only for adding new fields that don’t overlap with the desired state.

For lists fields which are atomic (e.g `spec.tolerations` in PodSpec), Kubernetes doesn't allow different managers
for such fields, therefore any changes to these fields will be undone, even if you specify a manager.
For more context, please see the Kubernetes enhancement doc:
[555-server-side-apply](https://github.com/kubernetes/enhancements/blob/master/keps/sig-api-machinery/555-server-side-apply/README.md#lists).

## Garbage collection

To enable garbage collection, set `spec.prune` to `true`.
Expand Down

0 comments on commit 3ad92a2

Please sign in to comment.