plugin/k8s: fix pods disabled behavior (#1207)
* fix pods disabled behavior * do away with pod mode specific error
This commit is contained in:
parent
5d3bfef732
commit
1a96fd2aee
2 changed files with 2 additions and 5 deletions
|
@ -77,7 +77,6 @@ var (
|
|||
errNoItems = errors.New("no items found")
|
||||
errNsNotExposed = errors.New("namespace is not exposed")
|
||||
errInvalidRequest = errors.New("invalid query name")
|
||||
errPodsDisabled = errors.New("pod records disabled")
|
||||
)
|
||||
|
||||
// Services implements the ServiceBackend interface.
|
||||
|
@ -295,7 +294,7 @@ func endpointHostname(addr api.EndpointAddress, endpointNameMode bool) string {
|
|||
|
||||
func (k *Kubernetes) findPods(r recordRequest, zone string) (pods []msg.Service, err error) {
|
||||
if k.podMode == podModeDisabled {
|
||||
return nil, errPodsDisabled
|
||||
return nil, errNoItems
|
||||
}
|
||||
|
||||
namespace := r.namespace
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue