Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 68 for syncPod (0.2 sec)

  1. pkg/controller/storageversionmigrator/storageversionmigrator.go

    	resourceMonitor, err := svmc.dependencyGraphBuilder.GetMonitor(ctx, gvr)
    	if resourceMonitor != nil {
    		if err != nil {
    			// non nil monitor indicates that error is due to resource not being synced
    			return fmt.Errorf("dependency graph is not synced, requeuing to attempt again")
    		}
    	} else {
    		// we can't migrate a resource that doesn't exist in the GC
    		_, err = svmc.kubeClient.StoragemigrationV1alpha1().
    			StorageVersionMigrations().
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  2. pkg/proxy/servicechangetracker.go

    type processServiceMapChangeFunc func(previous, current ServicePortMap)
    
    // serviceChange contains all changes to services that happened since proxy rules were synced.  For a single object,
    // changes are accumulated, i.e. previous is state from before applying the changes,
    // current is state after applying all of the changes.
    type serviceChange struct {
    	previous ServicePortMap
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Dec 21 14:44:08 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  3. pkg/security/apparmor/helpers.go

    	}
    
    	if container.SecurityContext != nil && container.SecurityContext.AppArmorProfile != nil {
    		return container.SecurityContext.AppArmorProfile
    	}
    
    	// Static pods may not have had annotations synced to fields, so fallback to annotations before
    	// the pod profile.
    	if profile := getProfileFromPodAnnotations(pod.Annotations, container.Name); profile != nil {
    		return profile
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 18:46:32 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  4. pkg/kube/krt/singleton_test.go

    			cms := krt.Fetch(ctx, ConfigMaps)
    			return ptr.Of(slices.Join(",", slices.Map(cms, func(c *corev1.ConfigMap) string {
    				return config.NamespacedName(c).String()
    			})...))
    		},
    	)
    	ConfigMapNames.AsCollection().Synced().WaitUntilSynced(stop)
    	tt := assert.NewTracker[string](t)
    	ConfigMapNames.Register(TrackerHandler[string](tt))
    	tt.WaitOrdered("add/")
    
    	assert.Equal(t, *ConfigMapNames.Get(), "")
    
    	cmt.Create(&corev1.ConfigMap{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 11 08:27:29 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  5. architecture/standards/0001-use-architectural-decision-records.md

    * They are rarely updated after creation and initial review, and then become hard to follow, especially after important decisions are made
    * They are not synced with the code to reflect the eventual solution that is committed
    * Google Docs is not a "code-oriented" tool, like asciidoc can be
    * Review in Google Docs is not as simple as a PR code review in GitHub
    
    ## Decision
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Mar 02 21:54:40 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  6. pkg/kube/krt/fetch.go

    		collectionName: c.name(),
    		filter:         &filter{},
    	}
    	for _, o := range opts {
    		o(d)
    	}
    	// Important: register before we List(), so we cannot miss any events
    	h.registerDependency(d, c.Synced(), func(f erasedEventHandler) {
    		ff := func(o []Event[T], initialSync bool) {
    			f(slices.Map(o, castEvent[T, any]), initialSync)
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  7. pkg/kube/kclient/delayed.go

    	}
    }
    
    func (s *delayedClient[T]) HasSynced() bool {
    	if c := s.inf.Load(); c != nil {
    		return (*c).HasSynced()
    	}
    	// If we haven't loaded the informer yet, we want to check if the delayed filter is synced.
    	// This ensures that at startup, we only return HasSynced=true if we are sure the CRD is not ready.
    	hs := s.delayed.HasSynced()
    	return hs
    }
    
    func (s *delayedClient[T]) ShutdownHandlers() {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 31 02:32:59 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  8. pkg/kube/multicluster/clusterstore.go

    	c.RLock()
    	defer c.RUnlock()
    	for _, clusterMap := range c.remoteClusters {
    		for _, cl := range clusterMap {
    			if !cl.HasSynced() {
    				log.Debugf("remote cluster %s registered informers have not been synced up yet", cl.ID)
    				return false
    			}
    		}
    	}
    
    	return true
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 07 15:01:12 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  9. pkg/controller/ttl/ttl_controller.go

    type Controller struct {
    	kubeClient clientset.Interface
    
    	// nodeStore is a local cache of nodes.
    	nodeStore listers.NodeLister
    
    	// Nodes that need to be synced.
    	queue workqueue.TypedRateLimitingInterface[string]
    
    	// Returns true if all underlying informers are synced.
    	hasSynced func() bool
    
    	lock sync.RWMutex
    
    	// Number of nodes in the cluster.
    	nodeCount int
    
    	// Desired TTL for all nodes in the cluster.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  10. pkg/queue/instance_test.go

    		return nil
    	}
    	q := NewQueue(0)
    	q.Push(task)
    	stop := make(chan struct{})
    	go q.Run(stop)
    	retry.UntilOrFail(t, q.HasSynced, retry.Delay(time.Microsecond))
    	// Must always be 1 since we are synced
    	assert.Equal(t, handles.Load(), 1)
    	close(stop)
    	assert.NoError(t, WaitForClose(q, time.Second))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jul 21 16:30:36 UTC 2023
    - 3.4K bytes
    - Viewed (0)
Back to top