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: Make ResourceID field "mutable" #3434

Conversation

jasonvigil
Copy link
Collaborator

In practice, due to in-controller enforcement, the only valid change is to set from empty string -> actual resource ID.

Copy link
Collaborator

@maqiuyujoyce maqiuyujoyce left a comment

Choose a reason for hiding this comment

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

Could you also remove the Immutable. from the field description?

@jasonvigil
Copy link
Collaborator Author

Could you also remove the Immutable. from the field description?

I think it is sort of "correct" to include the immutable in the field description. The only valid change is from empty string -> actual resource id. Otherwise it is immutable.

@jasonvigil
Copy link
Collaborator Author

Could you also remove the Immutable. from the field description?

I think it is sort of "correct" to include the immutable in the field description. The only valid change is from empty string -> actual resource id. Otherwise it is immutable.

Though, maybe since it is removed from the template, we should remove from existing also. Will do.

@maqiuyujoyce
Copy link
Collaborator

I think "Immutable" is a very specific concept. Something like Must be the same resource ID once successfully reconciled may be helpful?

Copy link
Collaborator

@yuwenma yuwenma left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

Thanks!

@yuwenma
Copy link
Collaborator

yuwenma commented Dec 19, 2024

/lgtm

@google-oss-prow google-oss-prow bot added the lgtm label Dec 19, 2024
@jasonvigil jasonvigil force-pushed the remove-resourceid-cell-immutability branch from e8f4023 to e8131e0 Compare December 19, 2024 20:12
@google-oss-prow google-oss-prow bot removed the lgtm label Dec 19, 2024
In practice, due to in-controller enforcement, the only valid change is
to set from empty string -> actual resource ID.
@jasonvigil jasonvigil force-pushed the remove-resourceid-cell-immutability branch from e8131e0 to 9553959 Compare December 19, 2024 20:13
@jasonvigil jasonvigil requested a review from yuwenma December 19, 2024 20:16
@maqiuyujoyce
Copy link
Collaborator

/lgtm
/approve

Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: maqiuyujoyce, yuwenma

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [maqiuyujoyce,yuwenma]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-oss-prow google-oss-prow bot removed the lgtm label Dec 19, 2024
@jasonvigil
Copy link
Collaborator Author

I think "Immutable" is a very specific concept. Something like Must be the same resource ID once successfully reconciled may be helpful?

Agreed it will be helpful to add some comment to help users understand the validation behavior. Just added (for template and all resources)

@maqiuyujoyce
Copy link
Collaborator

/lgtm

@google-oss-prow google-oss-prow bot added the lgtm label Dec 19, 2024
@google-oss-prow google-oss-prow bot merged commit 680a127 into GoogleCloudPlatform:master Dec 19, 2024
17 checks passed
@jasonvigil jasonvigil deleted the remove-resourceid-cell-immutability branch December 26, 2024 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants