BackendService: add Reverse method (#381)
Add a Reverse method to BackendService because different backends want to to do diff. things. This allows etc/k8s to share even more code and we can unify the PTR handling.
This commit is contained in:
parent
2cca527d9f
commit
8d3418c015
6 changed files with 33 additions and 37 deletions
|
@ -5,13 +5,13 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
"k8s.io/client-go/1.5/kubernetes"
|
||||
"k8s.io/client-go/1.5/pkg/api"
|
||||
"k8s.io/client-go/1.5/pkg/api/v1"
|
||||
"k8s.io/client-go/1.5/tools/cache"
|
||||
"k8s.io/client-go/1.5/kubernetes"
|
||||
"k8s.io/client-go/1.5/pkg/labels"
|
||||
"k8s.io/client-go/1.5/pkg/runtime"
|
||||
"k8s.io/client-go/1.5/pkg/watch"
|
||||
"k8s.io/client-go/1.5/tools/cache"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -36,11 +36,11 @@ type dnsController struct {
|
|||
|
||||
selector *labels.Selector
|
||||
|
||||
svcController *cache.Controller
|
||||
nsController *cache.Controller
|
||||
svcController *cache.Controller
|
||||
nsController *cache.Controller
|
||||
|
||||
svcLister cache.StoreToServiceLister
|
||||
nsLister storeToNamespaceLister
|
||||
svcLister cache.StoreToServiceLister
|
||||
nsLister storeToNamespaceLister
|
||||
|
||||
// stopLock is used to enforce only a single call to Stop is active.
|
||||
// Needed because we allow stopping through an http endpoint and
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue