Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for syncPod (0.19 sec)

  1. pkg/kubelet/kubelet.go

    // (pod is running). If SyncPod exits with a transient error, the next
    // invocation of SyncPod is expected to make progress towards reaching the
    // desired state. SyncPod exits with isTerminal when the pod was detected to
    // have reached a terminal lifecycle phase due to container exits (for
    // RestartNever or RestartOnFailure) and the next method invoked will be
    // SyncTerminatingPod. If the pod terminates for any other reason, SyncPod
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 126.1K bytes
    - Viewed (0)
  2. pkg/kubelet/kubelet_test.go

    	})
    
    	_, err = kubelet.SyncPod(context.Background(), kubetypes.SyncPodCreate, pod, nil, &kubecontainer.PodStatus{})
    	require.NoError(t, err)
    
    	require.NoError(t, err)
    	assert.NotEmpty(t, exp.GetSpans())
    
    	// find root span for syncPod
    	var rootSpan *tracetest.SpanStub
    	spans := exp.GetSpans()
    	for i, span := range spans {
    		if span.Name == "syncPod" {
    			rootSpan = &spans[i]
    			break
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 106.9K bytes
    - Viewed (0)
  3. pkg/kubelet/kuberuntime/kuberuntime_manager_test.go

    	// GetPodStatus and the following SyncPod will not return errors in the
    	// case where the pod has been deleted. We are not adding any pods into
    	// the fakePodProvider so they are 'deleted'.
    	podStatus, err := m.GetPodStatus(ctx, pod.UID, pod.Name, pod.Namespace)
    	assert.NoError(t, err)
    	result := m.SyncPod(context.Background(), pod, podStatus, []v1.Secret{}, backOff)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 96K bytes
    - Viewed (0)
  4. pkg/kubelet/kubelet_pods.go

    	}
    	return resource.ExtractResourceValueByContainerName(fs, pod, containerName)
    }
    
    // killPod instructs the container runtime to kill the pod. This method requires that
    // the pod status contains the result of the last syncPod, otherwise it may fail to
    // terminate newly created containers and sandboxes.
    func (kl *Kubelet) killPod(ctx context.Context, pod *v1.Pod, p kubecontainer.Pod, gracePeriodOverride *int64) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 101.2K bytes
    - Viewed (0)
  5. pkg/kube/krt/informer.go

    var _ internalCollection[controllers.Object] = &informer[controllers.Object]{}
    
    func (i *informer[I]) _internalHandler() {}
    
    func (i *informer[I]) Synced() Syncer {
    	return channelSyncer{
    		name:   i.collectionName,
    		synced: i.synced,
    	}
    }
    
    // nolint: unused // (not true, its to implement an interface)
    func (i *informer[I]) dump() {
    	i.log.Errorf(">>> BEGIN DUMP")
    	for _, obj := range i.inf.List(metav1.NamespaceAll, klabels.Everything()) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 10 11:01:46 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  6. pkg/controller/job/job_controller.go

    		}
    	}
    	return pods, err
    }
    
    // syncJob will sync the job with the given key if it has had its expectations fulfilled, meaning
    // it did not expect to see any more of its pods created or deleted. This function is not meant to be invoked
    // concurrently with the same key.
    func (jm *Controller) syncJob(ctx context.Context, key string) (rErr error) {
    	startTime := jm.clock.Now()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 23:56:37 UTC 2024
    - 77.6K bytes
    - Viewed (0)
  7. pkg/controller/job/job_controller_test.go

    	// Make sure the first syncJob sets the expectations, even after the caches synced.
    	gotExpectedUIDs = manager.finalizerExpectations.getExpectedUIDs(jobKey)
    	if diff := cmp.Diff(uids, gotExpectedUIDs); diff != "" {
    		t.Errorf("Different expectations for removed finalizers after syncJob and cacheSync (-want,+got):\n%s", diff)
    	}
    
    	// Change pods in different ways.
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 229.2K bytes
    - Viewed (0)
  8. pkg/kube/namespace/filter.go

    	d.discoveryNamespaces.Delete(ns.Name)
    }
    
    // AddHandler registers a handler on namespace, which will be triggered when namespace selected or deselected.
    // If the namespaces have been synced, trigger the new added handler.
    func (d *discoveryNamespacesFilter) AddHandler(f func(added, removed sets.String)) {
    	d.lock.Lock()
    	defer d.lock.Unlock()
    	d.handlers = append(d.handlers, f)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 10 17:12:52 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  9. pilot/pkg/bootstrap/server.go

    }
    
    func (s *Server) waitForCacheSync(stop <-chan struct{}) bool {
    	start := time.Now()
    	log.Info("Waiting for caches to be synced")
    	if !kubelib.WaitForCacheSync("server", stop, s.cachesSynced) {
    		log.Errorf("Failed waiting for cache sync")
    		return false
    	}
    	log.Infof("All controller caches have been synced up in %v", time.Since(start))
    
    	// At this point, we know that all update events of the initial state-of-the-world have been
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 46.3K bytes
    - Viewed (0)
  10. pilot/pkg/config/kube/crdclient/client.go

    	if !kube.WaitForCacheSync("crdclient", stop, cl.informerSynced) {
    		cl.logger.Errorf("Failed to sync Pilot K8S CRD controller cache")
    		return
    	}
    	cl.logger.Infof("Pilot K8S CRD controller synced in %v", time.Since(t0))
    	cl.queue.Run(stop)
    	cl.logger.Infof("controller terminated")
    }
    
    func (cl *Client) informerSynced() bool {
    	for gk, ctl := range cl.allKinds() {
    		if !ctl.HasSynced() {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 00:12:28 UTC 2024
    - 13.7K bytes
    - Viewed (0)
Back to top