1
0
Fork 0

Make the IngressRoute kind optional

This commit is contained in:
Shreyas Kirtane 2024-11-04 08:26:04 -07:00 committed by GitHub
parent e8ff825ed2
commit 97caf758ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 35 additions and 10 deletions

View file

@ -60,7 +60,7 @@ func (p *Provider) loadIngressRouteConfiguration(ctx context.Context, client Cli
}
for _, route := range ingressRoute.Spec.Routes {
if route.Kind != "Rule" {
if len(route.Kind) > 0 && route.Kind != "Rule" {
logger.Error().Msgf("Unsupported match kind: %s. Only \"Rule\" is supported for now.", route.Kind)
continue
}