Skip to content

tests: don't skip the webhooks in our tests#4882

Open
justinsb wants to merge 2 commits intoGoogleCloudPlatform:masterfrom
justinsb:test_deny_immutable_field_updates_webhook
Open

tests: don't skip the webhooks in our tests#4882
justinsb wants to merge 2 commits intoGoogleCloudPlatform:masterfrom
justinsb:test_deny_immutable_field_updates_webhook

Conversation

@justinsb
Copy link
Collaborator

We were skipping the deny-immutable-field-updates webhook,
which meant that errors here are harder to detect.

@justinsb justinsb force-pushed the test_deny_immutable_field_updates_webhook branch 4 times, most recently from 7e665ec to 497a9e1 Compare July 30, 2025 22:14
@justinsb
Copy link
Collaborator Author

At least some of these are "real":

2025-07-30T22:34:56.5956914Z     samples.go:155: error updating resource: admission webhook "deny-immutable-field-updates.cnrm.cloud.google.com" denied the request: cannot make changes to immutable field(s): [diskSizeGb]; please refer to our troubleshooting doc: https://cloud.google.com/config-connector/docs/troubleshooting

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.

/approve
/lgtm
Awesome!

@google-oss-prow
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: yuwenma

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

The pull request process is described here

Details Needs approval from an approver in each of these files:

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

@cheftako
Copy link
Collaborator

cheftako commented Aug 4, 2025

Justin can you rebase and see if that gets the tests to pass?

@cheftako cheftako added this to the 1.134 milestone Aug 4, 2025
@justinsb
Copy link
Collaborator Author

I think these are real failures, but yes ... rebasing to see if anyone has fixed them :-)

@justinsb justinsb force-pushed the test_deny_immutable_field_updates_webhook branch from 497a9e1 to 0777e8f Compare August 13, 2025 15:33
@google-oss-prow google-oss-prow bot removed the lgtm label Aug 13, 2025
@google-oss-prow
Copy link
Contributor

New changes are detected. LGTM label has been removed.

We were skipping the deny-immutable-field-updates webhook,
which meant that any problems here are harder to detect.
This is how our webhooks identify the KCC controllers,
and allow them to make changes that would otherwise be immutable.
@justinsb justinsb force-pushed the test_deny_immutable_field_updates_webhook branch from 0777e8f to 347de46 Compare August 13, 2025 15:35
@xiaoweim xiaoweim modified the milestones: 1.134, Future Aug 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants