mirror of
https://github.com/cloudnativelabs/kube-router.git
synced 2025-10-06 07:21:03 +02:00
While rare that NodeName is missing it is not guaranteed to exist by the Kubernetes API (see link below). This retains checking via NodeName first if it exists, but if it's nil rather than segfaulting it evaluates the via IP address. Fixes #781 https://github.com/cloudnativelabs/kube-router/blob/master/vendor/k8s.io/api/core/v1/types.go#L3487