Skip to content

Commit

Permalink
Merge pull request #390 from MrHohn/cherrypick-383
Browse files Browse the repository at this point in the history
Cherrypick #383: Unmask get backend config errors
  • Loading branch information
freehan authored Jul 9, 2018
2 parents bf3b6fd + 992238e commit 3593ccb
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pkg/backendconfig/backendconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 3593ccb

Please sign in to comment.