-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Update Gateway API to v0.7.0 #25711
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 API to v0.7.0 #25711
Conversation
a705072
to
741e3f8
Compare
741e3f8
to
801f311
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this, also cleaning up my bad code/mistake before 👍
@@ -92,6 +93,8 @@ func (r *httpRouteReconciler) SetupWithManager(mgr ctrl.Manager) error { | |||
For(&gatewayv1beta1.HTTPRoute{}). | |||
// Watch for changes to Backend services | |||
Watches(&source.Kind{Type: &corev1.Service{}}, r.enqueueRequestForBackendService()). | |||
// Watch for changes to Reference Grants | |||
Watches(&source.Kind{Type: &gatewayv1beta1.ReferenceGrant{}}, r.enqueueRequestForRequestGrant()). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
/test |
64fc503
to
e24f5d2
Compare
@@ -45,6 +51,29 @@ func gatewayStatusAcceptedCondition(gw *gatewayv1beta1.Gateway, accepted bool, m | |||
} | |||
} | |||
|
|||
func gatewayStatusProgrammedCondition(gw *gatewayv1beta1.Gateway, scheduled bool, msg string) metav1.Condition { | |||
switch scheduled { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just wondering, why switch
not if
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an adaptation from @sayboras's original code, not sure what his reasoning was :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah i might have started with some enum, and then refactored to bool, so switch might be just lazy refactor.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have had an idea last night to re-factor this into 1 generic blob to re-use. But that is probably out of scope for this PR.
023ce23
to
bace3b0
Compare
/test |
This status condition is now required to be set for Gateway API conformance. This status is now set once a gateway has valid config and has an assidned address Signed-off-by: Maartje Eyskens <maartje.eyskens@isovalent.com>
This adds a count for the attachedroutes field in the gateway status. Signed-off-by: Maartje Eyskens <maartje.eyskens@isovalent.com>
Setting gatewayListenerAcceptedCondition is now required to pass conformance Signed-off-by: Maartje Eyskens <maartje.eyskens@isovalent.com>
The new conformance tests now explicitly test for removed listeners to be removed from the status. We did not do this before, this adds a filter for that. Signed-off-by: Maartje Eyskens <maartje.eyskens@isovalent.com>
This change sets the resolved reference status to true when they have been found. Signed-off-by: Maartje Eyskens <maartje.eyskens@isovalent.com>
when a section is demanded on a gateway reference we should check if it actually exists. The conformace tests now check against this. Signed-off-by: Maartje Eyskens <maartje.eyskens@isovalent.com>
This renames the function to check reference grants for certificates to a less generic name to avoid confusion with the one responsible for checking route backends. Signed-off-by: Maartje Eyskens <maartje.eyskens@isovalent.com>
We previously did not perform checks for reference grants when validating routes. This now extracts this check into a helper which is re-used in both ingestion code as well as in the route validation code. Signed-off-by: Maartje Eyskens <maartje.eyskens@isovalent.com>
Previously we would check all references. This would cause the status of the reference to be overritten in the last one was correct. Signed-off-by: Maartje Eyskens <maartje.eyskens@isovalent.com>
HTTPRoute is no logner a standard enabled feature in the conformace tests, This adds this back in our CI tests Signed-off-by: Maartje Eyskens <maartje.eyskens@isovalent.com>
This PR adds correct ReferenceGrant checks into TLSRoute. It also adds a check for resource kind in the helper function. Signed-off-by: Maartje Eyskens <maartje.eyskens@isovalent.com>
Improve the function arguments to the checked route is the last one. Signed-off-by: Maartje Eyskens <maartje.eyskens@isovalent.com>
This adds IsSecretReferenceAllowed to check the secret reference logic in one place. Signed-off-by: Maartje Eyskens <maartje.eyskens@isovalent.com>
Signed-off-by: Maartje Eyskens <maartje.eyskens@isovalent.com>
Signed-off-by: Maartje Eyskens <maartje.eyskens@isovalent.com>
b9a8be9
to
473e031
Compare
/test |
/test-1.16-4.19 |
This commit adds the missing reference-grant watch to the TLS route controller. Fixes: cilium#25573 & cilium#25711 Signed-off-by: Marco Hofstetter <marco.hofstetter@isovalent.com>
This commit adds the missing reference-grant watch to the TLS route controller. Fixes: cilium#25573 & cilium#25711 Signed-off-by: Marco Hofstetter <marco.hofstetter@isovalent.com>
[ upstream commit 30d3a6f ] This commit adds the missing reference-grant watch to the TLS route controller. Fixes: cilium#25573 & cilium#25711 Signed-off-by: Marco Hofstetter <marco.hofstetter@isovalent.com> Signed-off-by: Sebastian Wicki <sebastian@isovalent.com>
This commit adds the missing reference-grant watch to the TLS route controller. Fixes: cilium#25573 & cilium#25711 Signed-off-by: Marco Hofstetter <marco.hofstetter@isovalent.com>
This commit adds the missing reference-grant watch to the TLS route controller. Fixes: cilium#25573 & cilium#25711 Signed-off-by: Marco Hofstetter <marco.hofstetter@isovalent.com>
This PR updates our Gateway API to v0.7.0. This includes the new vendor changes as well as all fixes we needed to pass the additional conformance tests in individual commits.
Fixes: #25474