Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for syncJob (0.24 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. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
Back to top