Add a new error type in cloud.go

Adding a new error "ImplementedElsewhere" to cloud.go.
This error indicates that implementation for a particular service/loadbalancer spec is handled by a different controller.
The caller can ignore the error and skip modifying service status upon receiving this error.
This commit is contained in:
Pavithra Ramesh 2019-07-29 15:37:03 -07:00
parent acaa16c272
commit 8382906c9d

View File

@ -199,9 +199,10 @@ type Routes interface {
}
var (
InstanceNotFound = errors.New("instance not found")
DiskNotFound = errors.New("disk is not found")
NotImplemented = errors.New("unimplemented")
InstanceNotFound = errors.New("instance not found")
DiskNotFound = errors.New("disk is not found")
NotImplemented = errors.New("unimplemented")
ImplementedElsewhere = errors.New("Implemented by a different controller")
)
// Zone represents the location of a particular machine.