Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document behaviour of atomic fields with server-side apply #774

Merged
merged 1 commit into from
Dec 7, 2022

Conversation

somtochiama
Copy link
Member

Closes #772

Signed-off-by: Somtochi Onyekwere [email protected]

@@ -279,7 +279,12 @@ 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.
the above procedure works only for adding new fields that don’t overlap with the desired state
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
the above procedure works only for adding new fields that don’t overlap with the desired state
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)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
[555-server-side-apply](https://github.com/kubernetes/enhancements/blob/master/keps/sig-api-machinery/555-server-side-apply/README.md#lists)
[555-server-side-apply](https://github.com/kubernetes/enhancements/blob/master/keps/sig-api-machinery/555-server-side-apply/README.md#lists).

Signed-off-by: Somtochi Onyekwere <[email protected]>
Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks @somtochiama

@stefanprodan stefanprodan added the area/docs Documentation related issues and pull requests label Dec 7, 2022
@stefanprodan stefanprodan merged commit 5149144 into fluxcd:main Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/docs Documentation related issues and pull requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Patching Node manifest taints removes existing taints
2 participants