Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for syncJob (0.16 sec)

  1. 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)
  2. pkg/controller/job/job_controller_test.go

    		},
    		"suspending a job with unsatisfied expectations": {
    			// Unlike the previous test, we expect the controller to NOT suspend the
    			// Job in the syncJob call because the controller will wait for
    			// expectations to be satisfied first. The next syncJob call (not tested
    			// here) will be the same as the previous test.
    			suspend:                   true,
    			parallelism:               2,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 229.2K bytes
    - Viewed (0)
  3. pkg/kubelet/pod_workers_test.go

    	var channels WorkChannel
    	podWorkers.workerChannelFn = channels.Intercept
    	terminalPhaseSyncer := newTerminalPhaseSync(podWorkers.podSyncer.(*podSyncerFuncs).syncPod)
    	podWorkers.podSyncer.(*podSyncerFuncs).syncPod = terminalPhaseSyncer.SyncPod
    
    	// start pod
    	podWorkers.UpdatePod(UpdatePodOptions{
    		Pod:        newNamedPod("1", "test1", "pod1", false),
    		UpdateType: kubetypes.SyncPodUpdate,
    	})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 75.6K bytes
    - Viewed (0)
  4. CHANGELOG/CHANGELOG-1.28.md

    - Kube-proxy: removed log warning about not using config file. ([#118115](https://github.com/kubernetes/kubernetes/pull/118115), [@TommyStarK](https://github.com/TommyStarK)) [SIG Network]
    - Made Job controller batching of syncJob invocations enabled unconditionally (it was conditional on JobReadyPods feature before).
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 23:47:59 UTC 2024
    - 408.3K bytes
    - Viewed (0)
  5. 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)
  6. src/go/internal/gcimporter/ureader.go

    		// to avoid eager loading of imports.
    		r.Sync(pkgbits.SyncObject)
    		assert(!r.Bool())
    		r.p.objIdx(r.Reloc(pkgbits.RelocObj))
    		assert(r.Len() == 0)
    	}
    
    	r.Sync(pkgbits.SyncEOF)
    
    	for _, fn := range pr.laterFns {
    		fn()
    	}
    
    	for _, iface := range pr.ifaces {
    		iface.Complete()
    	}
    
    	// Imports() of pkg are all of the transitive packages that were loaded.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  7. pkg/kubelet/status/status_manager.go

    		m.syncPod(update.podUID, update.status)
    	}
    
    	return len(updatedStatuses)
    }
    
    // syncPod syncs the given status with the API server. The caller must not hold the status lock.
    func (m *manager) syncPod(uid types.UID, status versionedPodStatus) {
    	// TODO: make me easier to express from client code
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 02 16:27:19 UTC 2024
    - 44.3K bytes
    - Viewed (0)
  8. pkg/kubelet/kuberuntime/kuberuntime_manager.go

    	// If resize results in net pod resource decrease, set pod cgroup config after resizing containers.
    	// If an error occurs at any point, abort. Let future syncpod iterations retry the unfinished stuff.
    	resizeContainers := func(rName v1.ResourceName, currPodCgLimValue, newPodCgLimValue, currPodCgReqValue, newPodCgReqValue int64) error {
    		var err error
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 02:01:31 UTC 2024
    - 64.7K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top