You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have created an external service to route my traffic. However, when trying to applying the ingress-rule, Yarp throws an error
To Reproduce
Create an external service and ingress rule for that service - By lack of documentation, I copied this from one of your test-assets. I had to add "ingressClassName: yarp", otherwise, Yarp would not even see changes in the ingress rules
[06:48:46 DBG] Informer V1Service received Modified notification for Service/external-service.default at resource version 191835
[06:48:46 WRN] Uncaught exception occured while reconciling ingress default/external-ingress
System.ArgumentNullException: Value cannot be null. (Parameter 'source')
at System.Linq.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
at System.Linq.Enumerable.TryGetSingle[TSource](IEnumerable`1 source, Func`2 predicate, Boolean& found)
at Yarp.Kubernetes.Controller.Converters.YarpParser.HandleIngressRule(YarpIngressContext ingressContext, List`1 endpoints, IList`1 defaultSubsets, V1IngressRule rule, YarpConfigContext configContext) in /src/src/Kubernetes.Controller/Converters/YarpParser.cs:line 42
at Yarp.Kubernetes.Controller.Converters.YarpParser.ConvertFromKubernetesIngress(YarpIngressContext ingressContext, YarpConfigContext configContext) in /src/src/Kubernetes.Controller/Converters/YarpParser.cs:line 31
at Yarp.Kubernetes.Controller.Services.Reconciler.ProcessAsync(CancellationToken cancellationToken) in /src/src/Kubernetes.Controller/Services/Reconciler.cs:line 56
[06:48:46 INF] [{"RouteId":"minimal-ingress.default:/foo","Match":{"Methods":null,"Hosts":[],"Path":"/foo/{**catch-all}","QueryParameters":null,"Headers":null},"Order":null,"ClusterId":"foo-service.default:8080","AuthorizationPolicy":null,"CorsPolicy":null,"MaxRequestBodySize":null,"Metadata":null,"Transforms":[{"PathPattern":"/{**catch-all}"}]},{"RouteId":"minimal-ingress.default:/bar","Match":{"Methods":null,"Hosts":[],"Path":"/bar/{**catch-all}","QueryParameters":null,"Headers":null},"Order":null,"ClusterId":"bar-service.default:8080","AuthorizationPolicy":null,"CorsPolicy":null,"MaxRequestBodySize":null,"Metadata":null,"Transforms":[{"PathPattern":"/{**catch-all}"}]}]
[06:48:46 INF] [{"ClusterId":"foo-service.default:8080","LoadBalancingPolicy":null,"SessionAffinity":null,"HealthCheck":null,"HttpClient":null,"HttpRequest":null,"Destinations":{"http://10.244.1.2:8080":{"Address":"http://10.244.1.2:8080","Health":null,"Metadata":null}},"Metadata":null},{"ClusterId":"bar-service.default:8080","LoadBalancingPolicy":null,"SessionAffinity":null,"HealthCheck":null,"HttpClient":null,"HttpRequest":null,"Destinations":{"http://10.244.1.3:8080":{"Address":"http://10.244.1.3:8080","Health":null,"Metadata":null}},"Metadata":null}]
Further technical details
I was using the latest version in the main branch, as /release/latest didn't work with the kubernetes controller
another ingress rule does exist. It doesn't matter if I include the external service with this definition
Describe the bug
I have created an external service to route my traffic. However, when trying to applying the ingress-rule, Yarp throws an error
To Reproduce
kubectl apply -f .\ingress-external.yaml
Further technical details
The text was updated successfully, but these errors were encountered: