Skip to content

Commit

Permalink
also fix for TLSRoute
Browse files Browse the repository at this point in the history
Signed-off-by: Arko Dasgupta <arko@tetrate.io>
  • Loading branch information
arkodg committed Dec 17, 2022
1 parent 386b949 commit dbd8724
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/provider/kubernetes/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ func serviceTLSRouteIndexFunc(rawObj client.Object) []string {
var services []string
for _, rule := range tlsroute.Spec.Rules {
for _, backend := range rule.BackendRefs {
if string(*backend.Kind) == gatewayapi.KindService {
if backend.Kind == nil || string(*backend.Kind) == gatewayapi.KindService {
// If an explicit Service namespace is not provided, use the TLSRoute namespace to
// lookup the provided Gateway Name.
services = append(services,
Expand Down

0 comments on commit dbd8724

Please sign in to comment.