What happened:
If we create a httproute first, and several seconds later create gateway, then it cannot be added to store c.store.AddOrUpdateHTTPRoute(httpRoute) Because the gateway not found yet.
|
informerGateway, err := c.gatewayLister.Gateways(gatewayNamespace).Get(string(parentRef.Name)) |
|
if err != nil { |
|
gatewayPending = true |
|
continue |
But even later gateway created, the gateway handler does handle the case some httproute may waiting for gateway.
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
- Kthena version:
- Kubernetes version:
- Others:
What happened:
If we create a httproute first, and several seconds later create gateway, then it cannot be added to store
c.store.AddOrUpdateHTTPRoute(httpRoute)Because the gateway not found yet.kthena/pkg/kthena-router/controller/httproute_controller.go
Lines 203 to 206 in f101d70
But even later gateway created, the gateway handler does handle the case some httproute may waiting for
gateway.What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment: