in pkg/model/core/httproute.go [252:275]
func (r *HTTPBackendRef) Equals(backendRef BackendRef) bool {
other, ok := backendRef.(*HTTPBackendRef)
if !ok {
return false
}
if (r.Weight() == nil && other.Weight() != nil) || (r.Weight() != nil && other.Weight() == nil) {
return false
}
if r.Weight() != nil && other.Weight() != nil && *r.Weight() != *other.Weight() {
return false
}
if !reflect.DeepEqual(r.Group(), other.Group()) ||
!reflect.DeepEqual(r.Kind(), other.Kind()) ||
!reflect.DeepEqual(r.Name(), other.Name()) ||
!reflect.DeepEqual(r.Namespace(), other.Namespace()) ||
!reflect.DeepEqual(r.Port(), other.Port()) {
return false
}
return true
}