mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-08 11:38:15 +00:00
Federated namespace controller - stop reconcilation if not in sync
This commit is contained in:
parent
214c916045
commit
420bab477e
@ -221,6 +221,7 @@ func (nc *NamespaceController) reconcileNamespacesOnClusterChange() {
|
|||||||
func (nc *NamespaceController) reconcileNamespace(namespace string) {
|
func (nc *NamespaceController) reconcileNamespace(namespace string) {
|
||||||
if !nc.isSynced() {
|
if !nc.isSynced() {
|
||||||
nc.deliverNamespace(namespace, nc.clusterAvailableDelay, false)
|
nc.deliverNamespace(namespace, nc.clusterAvailableDelay, false)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
baseNamespaceObj, exist, err := nc.namespaceInformerStore.GetByKey(namespace)
|
baseNamespaceObj, exist, err := nc.namespaceInformerStore.GetByKey(namespace)
|
||||||
|
Loading…
Reference in New Issue
Block a user