Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 68 for syncPod (0.12 sec)

  1. platforms/native/language-native/src/integTest/groovy/org/gradle/language/cpp/AbstractCppPublishingIntegrationTest.groovy

            }
        }
    
        @Override
        ExecutableFixture executable(Object path) {
            ExecutableFixture executable = super.executable(path)
            // Executables synced from a binary repo lose their executable bit
            executable.file.setExecutable(true)
            executable
        }
    
        Map<String, String> machine(String os, String architecture) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  2. pkg/kubelet/lifecycle/interfaces.go

    	AddPodAdmitHandler(a PodAdmitHandler)
    }
    
    // PodSyncLoopHandler is invoked during each sync loop iteration.
    type PodSyncLoopHandler interface {
    	// ShouldSync returns true if the pod needs to be synced.
    	// This operation must return immediately as its called for each pod.
    	// The provided pod should never be modified.
    	ShouldSync(pod *v1.Pod) bool
    }
    
    // PodSyncLoopTarget maintains a list of handlers to pod sync loop.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 22 17:25:57 UTC 2017
    - 4K bytes
    - Viewed (0)
  3. pkg/kube/krt/index_test.go

    		pods := krt.Fetch(ctx, SimplePods, krt.FilterIndex(IPIndex, "1.2.3.5"))
    		names := slices.Sort(slices.Map(pods, SimplePod.ResourceName))
    		return ptr.Of(strings.Join(names, ","))
    	})
    	Collection.AsCollection().Synced().WaitUntilSynced(stop)
    	fetchSorted := func(ip string) []SimplePod {
    		return slices.SortBy(IPIndex.Lookup(ip), func(t SimplePod) string {
    			return t.ResourceName()
    		})
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 09 19:55:53 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  4. pkg/kubelet/cloudresource/cloud_request_manager.go

    		nodeAddressesMonitor: sync.NewCond(&sync.Mutex{}),
    	}
    }
    
    // NodeAddresses waits for the first sync loop to run. If no successful syncs
    // have run, it will return the most recent error. If node addresses have been
    // synced successfully, it will return the list of node addresses from the most
    // recent successful sync.
    func (m *cloudResourceSyncManager) NodeAddresses() ([]v1.NodeAddress, error) {
    	m.nodeAddressesMonitor.L.Lock()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 05 18:29:23 UTC 2021
    - 4.5K bytes
    - Viewed (0)
  5. pkg/controller/statefulset/stateful_set_status_updater_test.go

    		update := action.(core.UpdateAction)
    		sts := update.GetObject().(*apps.StatefulSet)
    		if sts.Status.ObservedGeneration != 3 {
    			t.Errorf("expected observedGeneration to be synced with generation for statefulset %q", sts.Name)
    		}
    		return true, sts, nil
    	})
    	if err := updater.UpdateStatefulSetStatus(context.TODO(), set, &status); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 13 15:37:10 UTC 2022
    - 5.9K bytes
    - Viewed (0)
  6. pkg/kube/krt/singleton.go

    	if runExistingState {
    		v := d.val.Load()
    		if v != nil {
    			f([]Event[T]{{
    				New:   v,
    				Event: controllers.EventAdd,
    			}}, true)
    		}
    	}
    	return alwaysSynced{}
    }
    
    func (d *static[T]) Synced() Syncer {
    	return alwaysSynced{}
    }
    
    func (d *static[T]) Set(now *T) {
    	old := d.val.Swap(now)
    	if old == now {
    		return
    	}
    	for _, h := range d.eventHandlers.Get() {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  7. pkg/kube/krt/join_test.go

    		Labeled: Labeled{map[string]string{"app": "foo"}},
    		IP:      "9.9.9.9",
    	})
    	AllPods := krt.JoinCollection([]krt.Collection[SimplePod]{SimplePods, ExtraSimplePods.AsCollection()})
    	assert.Equal(t, AllPods.Synced().WaitUntilSynced(stop), true)
    	// Assert Equal -- not EventuallyEqual -- to ensure our WaitForCacheSync is proper
    	assert.Equal(t, fetcherSorted(AllPods)(), []SimplePod{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 09 19:55:53 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  8. pilot/pkg/serviceregistry/kube/controller/serviceexportcache.go

    	// ExportedServices returns the list of services that are exported in this cluster. Used for debugging.
    	ExportedServices() []exportedService
    	Run(stop <-chan struct{})
    
    	// HasSynced indicates whether the kube createClient has synced for the watched resources.
    	HasSynced() bool
    }
    
    // newServiceExportCache creates a new serviceExportCache that observes the given cluster.
    func newServiceExportCache(c *Controller) serviceExportCache {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 16:41:38 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  9. pkg/kubelet/types/pod_update.go

    		}
    	}
    	return "", fmt.Errorf("cannot get source of pod %q", pod.UID)
    }
    
    // SyncPodType classifies pod updates, eg: create, update.
    type SyncPodType int
    
    const (
    	// SyncPodSync is when the pod is synced to ensure desired state
    	SyncPodSync SyncPodType = iota
    	// SyncPodUpdate is when the pod is updated from source
    	SyncPodUpdate
    	// SyncPodCreate is when the pod is created from source
    	SyncPodCreate
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 07 22:26:12 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/discovery/file/file.go

    		config.Clusters[currentClusterName].CertificateAuthorityData = refreshedCluster.CertificateAuthorityData
    		klog.V(1).Infof("[discovery] Synced CertificateAuthorityData from the %s ConfigMap", bootstrapapi.ConfigMapClusterInfo)
    	}
    
    	return config, nil
    }
    
    // tryParseClusterInfoFromConfigMap tries to parse a kubeconfig file from a ConfigMap key
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 14 13:07:55 UTC 2024
    - 6.7K bytes
    - Viewed (0)
Back to top