Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for SeenAllSources (0.12 sec)

  1. pkg/kubelet/config/config.go

    	c.sourcesLock.Lock()
    	defer c.sourcesLock.Unlock()
    	c.sources.Insert(source)
    	return c.mux.ChannelWithContext(ctx, source)
    }
    
    // SeenAllSources returns true if seenSources contains all sources in the
    // config, and also this config has received a SET message from each source.
    func (c *PodConfig) SeenAllSources(seenSources sets.Set[string]) bool {
    	if c.pods == nil {
    		return false
    	}
    	c.sourcesLock.Lock()
    	defer c.sourcesLock.Unlock()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  2. pkg/kubelet/config/config_test.go

    		defer cancel()
    		defer wg.Done()
    		for i := 0; i < iterations; i++ {
    			config.Channel(ctx, strconv.Itoa(i))
    		}
    	}()
    	go func() {
    		defer wg.Done()
    		for i := 0; i < iterations; i++ {
    			config.SeenAllSources(seenSources)
    		}
    	}()
    
    	wg.Wait()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 17.1K bytes
    - Viewed (0)
Back to top