Add a server-side apply example - #4890
Conversation
The ServerSideApply utility had no accompanying example. This adds ServerSideApplyExample, which applies a ConfigMap, re-applies it with forceConflicts, and runs a dry-run apply.
|
Welcome @thev1ndu! |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: brendandburns, thev1ndu The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
bd9ff4e
into
kubernetes-client:master
What type of PR is this?
/kind documentation
What this PR does / why we need it:
The
ServerSideApplyutility in theutilmodule has no accompanying example, even though server-side apply is a common operation. This addsServerSideApplyExample, which:ConfigMapwith a field manager,forceConflictsto show idempotent updates and field ownership,It follows the style of the existing examples and passes
spotless:check.Which issue(s) this PR fixes:
None
Does this PR introduce a user-facing change?