Skip to content

use Patch when adding/removing finalizer#369

Merged
jaypipes merged 1 commit into
temporalio:mainfrom
jaypipes:jaypipes/issue-317
Jun 9, 2026
Merged

use Patch when adding/removing finalizer#369
jaypipes merged 1 commit into
temporalio:mainfrom
jaypipes:jaypipes/issue-317

Conversation

@jaypipes

@jaypipes jaypipes commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

To prevent TWC from mistakenly stealing ownership of an existing WorkerDeployment, we use Patch() instead of Update() when adding and removing the finalizer on WorkerDeployment.

Issue #317

To prevent TWC from mistakenly stealing ownership of an existing
WorkerDeployment, we use `Patch()` instead of `Update()` when adding and
removing the finalizer on WorkerDeployment.

Issue temporalio#317

Signed-off-by: Jay Pipes <jay.pipes@temporal.io>

@Shivs11 Shivs11 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

i wonder: could we test this out in any possible way?

@jaypipes

jaypipes commented Jun 9, 2026

Copy link
Copy Markdown
Contributor Author

i wonder: could we test this out in any possible way?

@Shivs11 I had the same thought. :) But I did not see any existing unit or functional tests that I could copy to add this...

@jaypipes jaypipes merged commit 409dfce into temporalio:main Jun 9, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants