source/compatibility.go
func legacyEndpointsFromService(svc *v1.Service, compatibility string) []*endpoint.Endpoint {
	switch compatibility {
	case "mate":
		return legacyEndpointsFromMateService(svc)
	case "molecule":
		return legacyEndpointsFromMoleculeService(svc)
	}

	return []*endpoint.Endpoint{}
}
func legacyEndpointsFromService(svc *v1.Service, compatibility string) []*endpoint.Endpoint {
	switch compatibility {
	case "mate":
		return legacyEndpointsFromMateService(svc)
	case "molecule":
		return legacyEndpointsFromMoleculeService(svc)
	}

	return []*endpoint.Endpoint{}
}
// legacyEndpointsFromService tries to retrieve Endpoints from Services
// annotated with legacy annotations.