From 992238e227c4bd9b076a31998a8e0be14b97f8c5 Mon Sep 17 00:00:00 2001 From: Zihong Zheng Date: Mon, 9 Jul 2018 11:54:16 -0700 Subject: [PATCH] Unmask get backend config errors --- pkg/backendconfig/backendconfig.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pkg/backendconfig/backendconfig.go b/pkg/backendconfig/backendconfig.go index 47077186e0..1f0d4b8078 100644 --- a/pkg/backendconfig/backendconfig.go +++ b/pkg/backendconfig/backendconfig.go @@ -32,10 +32,9 @@ import ( ) var ( - ErrBackendConfigsFromAnnotation = errors.New("error getting BackendConfig's from annotation") - ErrBackendConfigDoesNotExist = errors.New("no BackendConfig for service port exists.") - ErrBackendConfigFailedToGet = errors.New("client had error getting BackendConfig for service port.") - ErrNoBackendConfigForPort = errors.New("no BackendConfig name found for service port.") + ErrBackendConfigDoesNotExist = errors.New("no BackendConfig for service port exists.") + ErrBackendConfigFailedToGet = errors.New("client had error getting BackendConfig for service port.") + ErrNoBackendConfigForPort = errors.New("no BackendConfig name found for service port.") ) func CRDMeta() *crd.CRDMeta { @@ -95,7 +94,7 @@ func GetBackendConfigForServicePort(backendConfigLister cache.Store, svc *apiv1. if err == annotations.ErrBackendConfigAnnotationMissing { return nil, nil } - return nil, ErrBackendConfigsFromAnnotation + return nil, err } configName := BackendConfigName(*backendConfigs, *svcPort)