Merge pull request #27845 from nikhiljindal/fixNodesStore

Automatic merge from submit-queue

Initialising nodesStore in KubeDNS

Fixes https://github.com/kubernetes/kubernetes/issues/27820

cc @kubernetes/sig-cluster-federation @mml
This commit is contained in:
k8s-merge-robot 2016-06-22 04:38:47 -07:00 committed by GitHub
commit 7454bc464a

View File

@ -125,6 +125,7 @@ func NewKubeDNS(client clientset.Interface, domain string, federations map[strin
domain: domain,
cache: NewTreeCache(),
cacheLock: sync.RWMutex{},
nodesStore: kcache.NewStore(kcache.MetaNamespaceKeyFunc),
reverseRecordMap: make(map[string]*skymsg.Service),
domainPath: reverseArray(strings.Split(strings.TrimRight(domain, "."), ".")),
federations: federations,