- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 28 for DisruptionTarget (0.37 sec)
-
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) -
pkg/kubelet/status/status_manager_test.go
getPodStatus(), }, { "add DisruptionTarget condition when transitioning into failed phase; PodDisruptionConditions enabled", true, false, func(input v1.PodStatus) v1.PodStatus { return input }, func(input v1.PodStatus) v1.PodStatus { input.Phase = v1.PodFailed input.Conditions = append(input.Conditions, v1.PodCondition{ Type: v1.DisruptionTarget, Status: v1.ConditionTrue,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 02 16:27:19 UTC 2024 - 68.1K bytes - Viewed (0) -
pkg/kubelet/types/pod_status.go
func PodConditionSharedByKubelet(conditionType v1.PodConditionType) bool { if utilfeature.DefaultFeatureGate.Enabled(features.PodDisruptionConditions) { if conditionType == v1.DisruptionTarget { return true } } return false
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 12 15:18:11 UTC 2023 - 1.6K bytes - Viewed (0) -
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) -
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) -
pkg/kubelet/types/pod_status_test.go
} func TestPodConditionSharedByKubelet(t *testing.T) { featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.PodDisruptionConditions, true) trueCases := []v1.PodConditionType{ v1.DisruptionTarget, } for _, tc := range trueCases { if !PodConditionSharedByKubelet(tc) { t.Errorf("Expect %q to be condition shared by kubelet.", tc) } } falseCases := []v1.PodConditionType{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 2.2K bytes - Viewed (0) -
pkg/controller/disruption/disruption_test.go
Conditions: []v1.PodCondition{ { Type: v1.DisruptionTarget, Status: v1.ConditionTrue, LastTransitionTime: metav1.Time{Time: now}, }, }, }, }, timePassed: 2*time.Minute + time.Second, wantConditions: []v1.PodCondition{ { Type: v1.DisruptionTarget, Status: v1.ConditionFalse, }, }, },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 50K bytes - Viewed (0) -
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) -
pkg/controller/job/job_controller_test.go
{ Type: v1.DisruptionTarget, Status: v1.ConditionTrue, }, }, }, }, }, }, }, pods: []v1.Pod{ { 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: Tue Jun 11 15:36:36 UTC 2024 - 229.2K bytes - Viewed (0) -
pkg/apis/batch/validation/validation_test.go
Rules: []batch.PodFailurePolicyRule{{ Action: batch.PodFailurePolicyActionIgnore, OnPodConditions: []batch.PodFailurePolicyOnPodConditionsPattern{{ Type: api.DisruptionTarget, Status: api.ConditionTrue, }}, }, { Action: batch.PodFailurePolicyActionFailJob, OnPodConditions: []batch.PodFailurePolicyOnPodConditionsPattern{{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 20:49:09 UTC 2024 - 124.3K bytes - Viewed (0)