plan/conflict.go
func (s PerResource) ResolveCreate(candidates []*endpoint.Endpoint) *endpoint.Endpoint {
	var min *endpoint.Endpoint
	for _, ep := range candidates {
		if min == nil || s.less(ep, min) {
			min = ep
		}
	}
	return min
}
func (s PerResource) ResolveCreate(candidates []*endpoint.Endpoint) *endpoint.Endpoint {
	var min *endpoint.Endpoint
	for _, ep := range candidates {
		if min == nil || s.less(ep, min) {
			min = ep
		}
	}
	return min
}
func ( s PerResource ) ResolveCreate ( candidates [ ] * endpoint . Endpoint ) * endpoint . Endpoint { var min * endpoint . Endpoint for _ , ep := range candidates { if min == nil || s . less ( ep , min ) { min = ep } } return min }
// ResolveCreate is invoked when dns name is not owned by any resource
// ResolveCreate takes "minimal" (string comparison of Target) endpoint to acquire the DNS record
ResolveCreate is invoked when dns name is not owned by any resource ResolveCreate takes minimal ( string comparison of Target ) endpoint to acquire the DNS record