We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Description: The GatewayClass and Gateway logic for computing status conditions lives here https://github.com/envoyproxy/gateway/blob/main/internal/status/conditions.go
and the logic for Routes lives here
gateway/internal/gatewayapi/contexts.go
Line 89 in 085e6fa
These should be consolidated to one place for improving code reuse
The text was updated successfully, but these errors were encountered:
Hi @arkodg I would like to work on this. Seems like we would be able to remove duplicate code by changing SetCondition to something like this:
func (l *ListenerContext) SetCondition(conditionType v1beta1.ListenerConditionType, status metav1.ConditionStatus, reason v1beta1.ListenerConditionReason, message string) { cond := statusPkg.NewCondition(...) l.gateway.Status.Listeners[l.listenerStatusIdx].Conditions = statusPkg.MergeConditions(l.gateway.Status.Listeners[l.listenerStatusIdx].Conditions, cond) }
Does that sound ok? Any other ideas?
Sorry, something went wrong.
actually that would cause an import cycle. Let me think about this a bit more tomorrow.
assign myself of this one since i've been working with #2631
This issue has been automatically marked as stale because it has not had activity in the last 30 days.
shawnh2
Successfully merging a pull request may close this issue.
Description:
The GatewayClass and Gateway logic for computing status conditions lives here
https://github.com/envoyproxy/gateway/blob/main/internal/status/conditions.go
and the logic for Routes lives here
gateway/internal/gatewayapi/contexts.go
Line 89 in 085e6fa
These should be consolidated to one place for improving code reuse
The text was updated successfully, but these errors were encountered: