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: do not reconcile gateways with unsupported gw class #711

Merged
merged 2 commits into from
Oct 8, 2024

Conversation

czeslavo
Copy link
Contributor

@czeslavo czeslavo commented Oct 7, 2024

What this PR does / why we need it:

Ensures that if the Gateway does not refer to a supported GatewayClass (we can successfully get it and verify the ControllerName matches the KGO's one), we won't reconcile it and mark it with the Gateway finalizers.

Which issue this PR fixes

Fixes #586.

Special notes for your reviewer:

PR Readiness Checklist:

Complete these before marking the PR as ready to review:

  • the CHANGELOG.md release notes have been updated to reflect significant changes

@czeslavo czeslavo force-pushed the fix/not-supported-gwclass branch from 4fd90da to 697f27b Compare October 7, 2024 15:24
@czeslavo czeslavo self-assigned this Oct 7, 2024
@czeslavo czeslavo force-pushed the fix/not-supported-gwclass branch from 697f27b to 5796446 Compare October 7, 2024 15:24
@czeslavo czeslavo marked this pull request as ready for review October 7, 2024 15:25
@czeslavo czeslavo requested a review from a team as a code owner October 7, 2024 15:25
@czeslavo czeslavo marked this pull request as draft October 7, 2024 15:46
@czeslavo czeslavo force-pushed the fix/not-supported-gwclass branch 5 times, most recently from 7ac3fd7 to 31466a4 Compare October 8, 2024 11:38
@czeslavo czeslavo force-pushed the fix/not-supported-gwclass branch from 31466a4 to 71f4f3d Compare October 8, 2024 11:47
@czeslavo czeslavo marked this pull request as ready for review October 8, 2024 11:52
controller/gateway/controller_watch.go Outdated Show resolved Hide resolved
internal/errors/errors.go Outdated Show resolved Hide resolved
@czeslavo czeslavo merged commit 20f0841 into main Oct 8, 2024
21 checks passed
@czeslavo czeslavo deleted the fix/not-supported-gwclass branch October 8, 2024 14:49
pmalek pushed a commit that referenced this pull request Oct 8, 2024
* fix: do not reconcile gateways with unsupported gw class

* Apply suggestions from code review

Co-authored-by: Jakub Warczarek <[email protected]>

---------

Co-authored-by: Jakub Warczarek <[email protected]>
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.

Finalizers are added to Gateways not belonging to KGO
3 participants