Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for updateInstances (0.13 sec)

  1. pilot/pkg/serviceregistry/serviceentry/store.go

    		if instance.Endpoint.Address != "" {
    			s.ip2instance[instance.Endpoint.Address] = append(s.ip2instance[instance.Endpoint.Address], instance)
    		}
    	}
    }
    
    func (s *serviceInstancesStore) updateInstances(key configKeyWithParent, instances []*model.ServiceInstance) {
    	// first delete
    	s.deleteInstanceKeys(key, instances)
    
    	// second add
    	s.addInstances(key, instances)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 15:31:09 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  2. pilot/pkg/serviceregistry/serviceentry/controller.go

    		}
    		if event == model.EventDelete {
    			s.serviceInstances.deleteServiceEntryInstances(namespacedName, key)
    			s.serviceInstances.deleteInstanceKeys(parentKey, instancesUpdated)
    		} else {
    			s.serviceInstances.updateInstances(parentKey, instancesUpdated)
    			s.serviceInstances.updateServiceEntryInstancesPerConfig(namespacedName, key, instance)
    		}
    		addConfigs(se, services)
    	}
    
    	for _, namespacedName := range unSelected {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 15:31:09 UTC 2024
    - 36.8K bytes
    - Viewed (0)
Back to top