Add SSA option to transfer field manager on delete
See original GitHub issueHello!
- Vote on this issue by adding a 👍 reaction
- If you want to implement this feature, comment to let us know (we’ll work with you on design, scheduling, etc.)
Issue details
Related to https://github.com/pulumi/pulumi-kubernetes/issues/2108
Add an option for resources that use SSA to specify a field manager to take ownership of the resource on delete. Users currently have to manage any field transfer themselves to allow some resources to be deleted.
This is an example of an error they might see:
error: this Patch resource is currently managing a required field, so it can't be deleted directly. Either set the 'retainOnDelete' resource option, or transfer ownership of the field before deleting: spec.template.spec.volumes[0].configMap.name
We should be able to set a new field manager for any required fields rather than raising an error in these cases.
Workaround
See https://github.com/pulumi/pulumi-kubernetes/issues/2108#issuecomment-1199934365 for details on a workaround.
Affected area/feature
Issue Analytics
- State:
- Created a year ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Server-Side Apply - Kubernetes
Users can transfer ownership of a field between each other by setting the field to the same value in both of their applied...
Read more >Break Down Kubernetes Server-Side Apply - Medium
TL;DR, SSA is a new object merge algorithm. By adding a new managedFields field, APIServer provides a new way to complete the object...
Read more >SSA - Receiving Documents Submitted through iAppeals
Starting March 14, 2015, iAppeals users have the option to submit (upload) forms and other evidence with their Internet appeal requests.
Read more >SSA - POMS: NL 00801.005 - Systems-Generated Notices
Sends copies of notices to the FOs when the SSR is annotated with a blind individual's request for the special telephone option. The...
Read more >POMS: GN 02403.161 - Social Security Electronic Remittance ...
In 2017, SSA implemented SERS for certain Title II and Title XVI programmatic debts. SERS: •. Provides management information required to manage ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
After further work on this, and discussing the results with @squaremo, we decided that this isn’t the right direction to go. “Unpatching” a resource can lead to unexpected results, and should be an opt-in feature rather than the default.
Instead, we plan to make the following changes:
retainOnDelete
the default behavior for Patch resources, with a new opt-in flag to “unpatch” for cases where this works cleanly (e.g., for additive patches like new ConfigMap entries, or adding labels/annotations).retainOnDelete
+ the new unpatch option are both enabled.As a result of these planned changes, it should be far less common for users to encounter this error message since the resource would be retained by default.
For convenience, prior discussion is neatly summarised here: https://github.com/pulumi/pulumi-kubernetes/issues/2011#issuecomment-1152377430 (and the whole thread is useful context)