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

Update Gateway status on ReferenceGrant changes #2797

Merged
merged 9 commits into from
Aug 11, 2022
Merged

Conversation

rainest
Copy link
Contributor

@rainest rainest commented Aug 9, 2022

What this PR does / why we need it:
Reconciles a Gateway if the controller sees a ReferenceGrant that has a From clause for the Gateway.

Update Gateway statuses on every reconcile if they have changed, not just on creation.

Changes Gateway(Class) deploy test helpers to delete existing resources before creating new ones, to ease cluster re-use.

Which issue this PR fixes:
fix #2785
fix #2786

Special notes for your reviewer:
Contrary to #2785, this does not involve #2694, as the ReferenceGrant Condition is part of Listener status, not the Gateway status. Although Listener statuses are part of the Gateway status, they have their own Condition sets. I don't believe we needed anything to make Listener status conditions a snapshot other than updating them on each reconcile (not doing this earlier was a bug), since we generate them from scratch each time (we do use the previous conditions to make decisions about how to generate the new set, but we do not append them).

PR Readiness Checklist:

Complete these before marking the PR as ready to review:

  • the CHANGELOG.md release notes have been updated to reflect any significant (and particularly user-facing) changes introduced by this PR

Just lists the status fix; the rest is tests or part of the ReferenceGrant changes that are already staged for 2.6.

@rainest rainest requested a review from a team as a code owner August 9, 2022 21:18
@rainest rainest temporarily deployed to Configure ci August 9, 2022 21:18 Inactive
Overwrite test Gateways and GatewayClasses to ease cluster reuse.
@rainest rainest temporarily deployed to Configure ci August 9, 2022 21:21 Inactive
@rainest rainest temporarily deployed to Configure ci August 9, 2022 22:06 Inactive
@rainest rainest temporarily deployed to Configure ci August 9, 2022 22:30 Inactive
@rainest rainest temporarily deployed to Configure ci August 10, 2022 02:23 Inactive
Exclude ReferenceGrants that do not handle Gateways.

Require Gateway group.
@rainest rainest temporarily deployed to Configure ci August 10, 2022 18:35 Inactive
@rainest rainest temporarily deployed to Configure ci August 10, 2022 18:41 Inactive
@rainest rainest temporarily deployed to Configure ci August 10, 2022 20:15 Inactive
@rainest rainest temporarily deployed to Configure ci August 10, 2022 20:27 Inactive
@rainest rainest temporarily deployed to Configure ci August 10, 2022 20:51 Inactive
@rainest rainest temporarily deployed to Configure ci August 11, 2022 16:58 Inactive
@rainest rainest enabled auto-merge (squash) August 11, 2022 17:18
@rainest rainest temporarily deployed to Configure ci August 11, 2022 17:23 Inactive
@rainest
Copy link
Contributor Author

rainest commented Aug 11, 2022

@mlavacca can you approve as well? Apparently GH is stuck on the old review--not really sure, but I can't see any reason it's indicating your change request is still active.

@rainest rainest merged commit 1a5fc03 into main Aug 11, 2022
@rainest rainest deleted the fix/always-update-status branch August 11, 2022 17:37
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.

ReferenceGrant events should trigger Gateway events Keep listener status updated
4 participants