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

fix: Allow WriteOnly attributes to require replacement #36313

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

radeksimko
Copy link
Member

@radeksimko radeksimko commented Jan 13, 2025

Target Release

1.11.x

CHANGELOG entry

WriteOnly attributes are still pre-release.

@radeksimko radeksimko force-pushed the b-write-only-required-replace branch from 4bcee80 to c5435cd Compare January 14, 2025 15:34
@radeksimko radeksimko marked this pull request as ready for review January 14, 2025 15:39
@radeksimko radeksimko requested a review from a team as a code owner January 14, 2025 15:39
Copy link
Member

@SarahFrench SarahFrench left a comment

Choose a reason for hiding this comment

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

An initial comment, and I'll reach out with some questions to help my understanding

Comment on lines +2846 to +2848
case !writeOnly.Intersection(reqRep).Empty():
action = plans.DeleteThenCreate
actionReason = plans.ResourceInstanceReplaceBecauseCannotUpdate
Copy link
Member

Choose a reason for hiding this comment

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

I saw that another switch case here changes the action based on createBeforeDestroy. Should this new switch case also use that to decide which action to use?

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