Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for addOrUpdateService (0.3 sec)

  1. pilot/pkg/serviceregistry/kube/controller/serviceimportcache.go

    		}
    	}
    
    	// Always force a rebuild of the endpoint cache in case this import caused
    	// a change to the discoverability policy.
    	ic.addOrUpdateService(nil, nil, mcsService, event, true)
    
    	// TODO: do we really need a full push, we should do it in `addOrUpdateService`.
    	if needsFullPush {
    		ic.doFullPush(mcsHost, si.GetNamespace())
    	}
    
    	return nil
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 16:41:38 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  2. pilot/pkg/serviceregistry/kube/controller/controller.go

    	svcConv := kube.ConvertService(*curr, c.opts.DomainSuffix, c.Cluster(), c.meshWatcher.Mesh())
    
    	switch event {
    	case model.EventDelete:
    		c.deleteService(svcConv)
    	default:
    		c.addOrUpdateService(pre, curr, svcConv, event, false)
    	}
    
    	return nil
    }
    
    func (c *Controller) deleteService(svc *model.Service) {
    	c.Lock()
    	delete(c.servicesMap, svc.Hostname)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 41.2K bytes
    - Viewed (0)
Back to top