From 8382906c9d346549ea72bacfdc9b004887c620d1 Mon Sep 17 00:00:00 2001 From: Pavithra Ramesh Date: Mon, 29 Jul 2019 15:37:03 -0700 Subject: [PATCH] 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. --- staging/src/k8s.io/cloud-provider/cloud.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/staging/src/k8s.io/cloud-provider/cloud.go b/staging/src/k8s.io/cloud-provider/cloud.go index 6db0219520b..5da25c1f27d 100644 --- a/staging/src/k8s.io/cloud-provider/cloud.go +++ b/staging/src/k8s.io/cloud-provider/cloud.go @@ -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.