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:
		@@ -125,6 +125,7 @@ func NewKubeDNS(client clientset.Interface, domain string, federations map[strin
 | 
				
			|||||||
		domain:           domain,
 | 
							domain:           domain,
 | 
				
			||||||
		cache:            NewTreeCache(),
 | 
							cache:            NewTreeCache(),
 | 
				
			||||||
		cacheLock:        sync.RWMutex{},
 | 
							cacheLock:        sync.RWMutex{},
 | 
				
			||||||
 | 
							nodesStore:       kcache.NewStore(kcache.MetaNamespaceKeyFunc),
 | 
				
			||||||
		reverseRecordMap: make(map[string]*skymsg.Service),
 | 
							reverseRecordMap: make(map[string]*skymsg.Service),
 | 
				
			||||||
		domainPath:       reverseArray(strings.Split(strings.TrimRight(domain, "."), ".")),
 | 
							domainPath:       reverseArray(strings.Split(strings.TrimRight(domain, "."), ".")),
 | 
				
			||||||
		federations:      federations,
 | 
							federations:      federations,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user