- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 31 for DisruptionTarget (0.2 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/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)