question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add SSA option to transfer field manager on delete

See original GitHub issue

Hello!

  • 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:closed
  • Created a year ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
lblackstonecommented, Dec 5, 2022

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:

  1. Make 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).
  2. Add a warning if retainOnDelete + the new unpatch option are both enabled.
  3. Add additional documentation that covers common patching scenarios.
  4. Update error messages

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.

0reactions
squaremocommented, Dec 12, 2022

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)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found