Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for DisruptionTarget (0.51 sec)

  1. pkg/controller/job/pod_failure_policy_test.go

    							{
    								Type:   v1.DisruptionTarget,
    								Status: v1.ConditionTrue,
    							},
    						},
    					},
    					{
    						Action: batch.PodFailurePolicyActionIgnore,
    						OnPodConditions: []batch.PodFailurePolicyOnPodConditionsPattern{
    							{
    								Type:   v1.DisruptionTarget,
    								Status: v1.ConditionTrue,
    							},
    						},
    					},
    				},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  2. pkg/controller/disruption/disruption.go

    		return err
    	}
    	defer func() {
    		logger.V(4).Info("Finished syncing Pod to clear DisruptionTarget condition", "pod", klog.KRef(namespace, name), "duration", dc.clock.Since(startTime))
    	}()
    	pod, err := dc.podLister.Pods(namespace).Get(name)
    	if errors.IsNotFound(err) {
    		logger.V(4).Info("Skipping clearing DisruptionTarget condition because pod was deleted", "pod", klog.KObj(pod))
    		return nil
    	}
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 36.1K bytes
    - Viewed (0)
  3. pkg/apis/batch/v1/defaults_test.go

    						Rules: []batchv1.PodFailurePolicyRule{
    							{
    								Action: batchv1.PodFailurePolicyActionFailJob,
    								OnPodConditions: []batchv1.PodFailurePolicyOnPodConditionsPattern{
    									{
    										Type:   v1.DisruptionTarget,
    										Status: v1.ConditionTrue,
    									},
    									{
    										Type:   v1.PodConditionType("MemoryLimitExceeded"),
    										Status: v1.ConditionFalse,
    									},
    									{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  4. pkg/kubelet/nodeshutdown/nodeshutdown_manager_linux_test.go

    					Phase:   v1.PodFailed,
    					Message: "Pod was terminated in response to imminent node shutdown.",
    					Reason:  "Terminated",
    					Conditions: []v1.PodCondition{
    						{
    							Type:    v1.DisruptionTarget,
    							Status:  v1.ConditionTrue,
    							Reason:  "TerminationByKubelet",
    							Message: "Pod was terminated in response to imminent node shutdown.",
    						},
    					},
    				},
    				"failed-pod": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  5. pkg/registry/core/pod/storage/eviction.go

    		getLatestPod := func(_ context.Context, _, oldObj runtime.Object) (runtime.Object, error) {
    			// Throwaway the newObj. We care only about the latest pod obtained from etcd (oldObj).
    			// So we can add DisruptionTarget condition in conditionAppender without conflicts.
    			latestPod := oldObj.(*api.Pod).DeepCopy()
    			if options.Preconditions != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 08 11:58:48 UTC 2023
    - 18.2K bytes
    - Viewed (0)
  6. pkg/kubelet/status/status_manager.go

    	updateLastTransitionTime(&status, &oldStatus, v1.PodScheduled)
    
    	if utilfeature.DefaultFeatureGate.Enabled(features.PodDisruptionConditions) {
    		// Set DisruptionTarget.LastTransitionTime.
    		updateLastTransitionTime(&status, &oldStatus, v1.DisruptionTarget)
    	}
    
    	// ensure that the start time does not change across updates.
    	if oldStatus.StartTime != nil && !oldStatus.StartTime.IsZero() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 02 16:27:19 UTC 2024
    - 44.3K bytes
    - Viewed (0)
  7. pkg/controller/job/indexed_job_utils_test.go

    									{
    										Type:   v1.DisruptionTarget,
    										Status: v1.ConditionTrue,
    									},
    								},
    							},
    						},
    					},
    				},
    			},
    			pod: buildPod().uid("a").indexFailureCount("3").status(v1.PodStatus{
    				Phase: v1.PodFailed,
    				Conditions: []v1.PodCondition{
    					{
    						Type:   v1.DisruptionTarget,
    						Status: v1.ConditionTrue,
    					},
    				},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  8. pkg/controller/podgc/gc_controller_test.go

    		name                 string
    		pod                  *v1.Pod
    		expectedPatchedPod   *v1.Pod
    		expectedDeleteAction *clienttesting.DeleteActionImpl
    	}{
    		{
    			name: "orphaned pod should have DisruptionTarget condition added before deletion",
    			pod: &v1.Pod{
    				ObjectMeta: metav1.ObjectMeta{
    					Namespace: "default",
    					Name:      "testPod",
    				},
    				Spec: v1.PodSpec{
    					NodeName: "deletedNode",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 08:16:48 UTC 2024
    - 29K bytes
    - Viewed (0)
  9. pkg/kubelet/preemption/preemption.go

    			status.Message = message
    			if utilfeature.DefaultFeatureGate.Enabled(features.PodDisruptionConditions) {
    				podutil.UpdatePodCondition(status, &v1.PodCondition{
    					Type:    v1.DisruptionTarget,
    					Status:  v1.ConditionTrue,
    					Reason:  v1.PodReasonTerminationByKubelet,
    					Message: "Pod was preempted by Kubelet to accommodate a critical pod.",
    				})
    			}
    		})
    		if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 02 16:53:19 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/preemption/preemption.go

    		} else {
    			if feature.DefaultFeatureGate.Enabled(features.PodDisruptionConditions) {
    				condition := &v1.PodCondition{
    					Type:    v1.DisruptionTarget,
    					Status:  v1.ConditionTrue,
    					Reason:  v1.PodReasonPreemptionByScheduler,
    					Message: fmt.Sprintf("%s: preempting to accommodate a higher priority pod", pod.Spec.SchedulerName),
    				}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 25.1K bytes
    - Viewed (0)
Back to top