Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for newRevision (0.57 sec)

  1. pilot/pkg/config/memory/controller.go

    			config: config,
    			event:  model.EventAdd,
    		})
    	}
    	return
    }
    
    func (c *Controller) Update(config config.Config) (newRevision string, err error) {
    	oldconfig := c.configStore.Get(config.GroupVersionKind, config.Name, config.Namespace)
    	if newRevision, err = c.configStore.Update(config); err == nil {
    		c.monitor.ScheduleProcessEvent(ConfigEvent{
    			old:    *oldconfig,
    			config: config,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 26 13:54:32 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  2. pilot/pkg/model/fake_store.go

    	if configs == nil {
    		configs = make(map[string]config.Config)
    		nsConfigs[cfg.Namespace] = configs
    	}
    
    	configs[cfg.Name] = cfg
    	return "", nil
    }
    
    func (s *FakeStore) Update(cfg config.Config) (newRevision string, err error) {
    	nsConfigs := s.store[cfg.GroupVersionKind]
    	if nsConfigs != nil {
    		configs := nsConfigs[cfg.Namespace]
    		if configs != nil {
    			if _, f := configs[cfg.Name]; f {
    				configs[cfg.Name] = cfg
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jul 18 06:50:06 UTC 2023
    - 3K bytes
    - Viewed (0)
Back to top