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

Gateway.Spec.Listener[x].Routes.Selector should be a pointer #571

Closed
stevesloka opened this issue Mar 3, 2021 · 1 comment · Fixed by #572
Closed

Gateway.Spec.Listener[x].Routes.Selector should be a pointer #571

stevesloka opened this issue Mar 3, 2021 · 1 comment · Fixed by #572
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@stevesloka
Copy link
Contributor

stevesloka commented Mar 3, 2021

What happened:

When implementing GatewayAPI, I noticed the selector field on a Gateway.Spec.Listener[x].Routes.Selector (https://gateway-api.sigs.k8s.io/spec/#networking.x-k8s.io/v1alpha1.RouteBindingSelector) is currently not a pointer, but nice if it was to know if the field has been provided or not by a user.

I’m using the LabelSelectorAsSelector method from api-machinery to then use labels.Matches(…), but LabelsSelectorAsSelector takes a pointer to the Selector.

//cc @danehans

@stevesloka stevesloka added the kind/bug Categorizes issue or PR as related to a bug. label Mar 3, 2021
@stevesloka
Copy link
Contributor Author

/assign

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant