Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 20 for syncJob (0.13 sec)

  1. pkg/kubelet/container/testing/fake_runtime.go

    			pods = append(pods, fakePod.Pod)
    		}
    	}
    	return pods, f.Err
    }
    
    func (f *FakeRuntime) SyncPod(_ context.Context, pod *v1.Pod, _ *kubecontainer.PodStatus, _ []v1.Secret, backOff *flowcontrol.Backoff) (result kubecontainer.PodSyncResult) {
    	f.Lock()
    	defer f.Unlock()
    
    	f.CalledFunctions = append(f.CalledFunctions, "SyncPod")
    	f.StartedPods = append(f.StartedPods, string(pod.UID))
    	for _, c := range pod.Spec.Containers {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 14 00:23:50 UTC 2024
    - 13.9K 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/runonce.go

    		if err := kl.mirrorPodClient.CreateMirrorPod(pod); err != nil {
    			klog.ErrorS(err, "Failed creating a mirror pod", "pod", klog.KObj(pod))
    		}
    		mirrorPod, _ := kl.podManager.GetMirrorPodByPod(pod)
    		if isTerminal, err = kl.SyncPod(ctx, kubetypes.SyncPodUpdate, pod, mirrorPod, status); err != nil {
    			return fmt.Errorf("error syncing pod %q: %v", format.Pod(pod), err)
    		}
    		if retry >= runOnceMaxRetries {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 04 06:56:50 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  4. 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)
  5. pkg/kubelet/container/runtime.go

    	// will be GC'd.
    	// TODO: Revisit this method and make it cleaner.
    	GarbageCollect(ctx context.Context, gcPolicy GCPolicy, allSourcesReady bool, evictNonDeletedPods bool) error
    	// SyncPod syncs the running pod into the desired pod.
    	SyncPod(ctx context.Context, pod *v1.Pod, podStatus *PodStatus, pullSecrets []v1.Secret, backOff *flowcontrol.Backoff) PodSyncResult
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  6. 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)
  7. src/go/parser/parser.go

    			// both parseOperand and parseStmt call advance and
    			// correctly do not advance, thus the need for the
    			// invocation limit p.syncCnt).
    			if p.pos == p.syncPos && p.syncCnt < 10 {
    				p.syncCnt++
    				return
    			}
    			if p.pos > p.syncPos {
    				p.syncPos = p.pos
    				p.syncCnt = 0
    				return
    			}
    			// Reaching here indicates a parser bug, likely an
    			// incorrect token list in this function, but it only
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 20:07:50 UTC 2023
    - 72.2K bytes
    - Viewed (0)
  8. pkg/controller/resourceclaim/controller.go

    	if err != nil {
    		return err
    	}
    
    	switch prefix {
    	case podKeyPrefix:
    		return ec.syncPod(ctx, namespace, name)
    	case claimKeyPrefix:
    		return ec.syncClaim(ctx, namespace, name)
    	default:
    		return fmt.Errorf("unexpected key prefix: %s", prefix)
    	}
    
    }
    
    func (ec *Controller) syncPod(ctx context.Context, namespace, name string) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 03:34:25 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ppc64/ssa.go

    			st = ppc64.AMOVW
    		}
    		arg0 := v.Args[0].Reg()
    		arg1 := v.Args[1].Reg()
    		// If AuxInt == 0, LWSYNC (Store-Release), else SYNC
    		// SYNC
    		syncOp := ppc64.ASYNC
    		if v.AuxInt == 0 {
    			syncOp = ppc64.ALWSYNC
    		}
    		psync := s.Prog(syncOp)
    		psync.To.Type = obj.TYPE_NONE
    		// Store
    		p := s.Prog(st)
    		p.To.Type = obj.TYPE_MEM
    		p.To.Reg = arg0
    		p.From.Type = obj.TYPE_REG
    		p.From.Reg = arg1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:59:38 UTC 2024
    - 55.4K bytes
    - Viewed (0)
  10. pkg/kubelet/volumemanager/populator/desired_state_of_world_populator.go

    		// processing it at a very high frequency. The pod will be reprocessed when volume manager calls
    		// ReprocessPod() which is triggered by SyncPod.
    		dswp.markPodProcessed(uniquePodName)
    	}
    
    }
    
    // checkVolumeFSResize records desired PVC size for a volume mounted by the pod.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 09:02:45 UTC 2024
    - 23.8K bytes
    - Viewed (0)
Back to top