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

listener status update #19

Merged
merged 16 commits into from
Dec 7, 2022
Merged

Conversation

mlavacca
Copy link
Member

@mlavacca mlavacca commented Nov 11, 2022

Initial scaffolding to enforce the Gateway listener status.
Fixes #13

@mlavacca mlavacca changed the title listener status started listener status update Nov 11, 2022
Copied (with git history):

controllers/gateway_controller.go

 — into: —

controllers/gateway_controller_status.go
Copied (with git history):

controllers/gateway_controller.go

 — into: —

controllers/gateway_controller_status.go
Copied (with git history):

controllers/gateway_controller.go

 — into: —

controllers/gateway_controller_status.go
controllers/gateway_controller.go

 — into: —

controllers/gateway_controller_status.go
Copied (with git history):

controllers/gateway_controller.go

 — into: —

controllers/gateway_controller_utils.go
Copied (with git history):

controllers/gateway_controller.go

 — into: —

controllers/gateway_controller_utils.go
Copied (with git history):

controllers/gateway_controller.go

 — into: —

controllers/gateway_controller_utils.go
controllers/gateway_controller.go

 — into: —

controllers/gateway_controller_utils.go
@mlavacca mlavacca requested a review from shaneutt December 1, 2022 18:50
@mlavacca mlavacca marked this pull request as ready for review December 1, 2022 18:55
Copy link
Member

@shaneutt shaneutt left a comment

Choose a reason for hiding this comment

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

Mostly looking good to me, I really appreciate the effort into testing the controller here.

My comments are mostly minor things, and mainly about some of the indirection going on in the reconciler. In general I would like to see us follow the practice more of "check a condition, take an action if needed, and requeue" instead of checking conditions, and carrying them forward as state for later decisions.

controllers/gateway_controller.go Show resolved Hide resolved
controllers/gateway_controller.go Show resolved Hide resolved
controllers/gateway_controller.go Outdated Show resolved Hide resolved
controllers/gateway_controller_test.go Show resolved Hide resolved
controllers/gateway_controller_test.go Outdated Show resolved Hide resolved
Co-authored-by: Shane Utt <[email protected]>
Signed-off-by: Mattia Lavacca <[email protected]>
@mlavacca mlavacca force-pushed the listener-status branch 2 times, most recently from 2964fa1 to c20d6dc Compare December 7, 2022 13:55
Signed-off-by: Mattia Lavacca <[email protected]>
Copy link
Member

@shaneutt shaneutt left a comment

Choose a reason for hiding this comment

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

While I think we could probably tweak this further, I think this is in good shape for where we're at with the project as we're bound to have lots more changes in this area soon since we're so early in the project.

Thank you, LGTM!

@shaneutt shaneutt merged commit c537b7d into kubernetes-sigs:main Dec 7, 2022
shaneutt added a commit to shaneutt/blixt that referenced this pull request Oct 11, 2023
Signed-off-by: Mattia Lavacca <[email protected]>
Co-authored-by: Shane Utt <[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.

Address and Listener Status in Gateways
2 participants