- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for PodConditionByKubelet (0.43 sec)
-
pkg/kubelet/types/pod_status.go
var PodConditionsByKubelet = []v1.PodConditionType{ v1.PodScheduled, v1.PodReady, v1.PodInitialized, v1.ContainersReady, } // PodConditionByKubelet returns if the pod condition type is owned by kubelet func PodConditionByKubelet(conditionType v1.PodConditionType) bool { for _, c := range PodConditionsByKubelet { if c == conditionType { return true } }
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/kubelet/types/pod_status_test.go
} for _, tc := range trueCases { if !PodConditionByKubelet(tc) { t.Errorf("Expect %q to be condition owned by kubelet.", tc) } } falseCases := []v1.PodConditionType{ v1.PodConditionType("abcd"), v1.PodConditionType(v1.PodReasonUnschedulable), } for _, tc := range falseCases { if PodConditionByKubelet(tc) { t.Errorf("Expect %q NOT to be condition owned by kubelet.", tc) }
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/kubelet/status/status_manager.go
for _, c := range oldPodStatus.Conditions { if !kubetypes.PodConditionByKubelet(c.Type) { podConditions = append(podConditions, c) } } transitioningToTerminalPhase := !podutil.IsPodPhaseTerminal(oldPodStatus.Phase) && podutil.IsPodPhaseTerminal(newPodStatus.Phase) for _, c := range newPodStatus.Conditions { if kubetypes.PodConditionByKubelet(c.Type) { podConditions = append(podConditions, c)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 02 16:27:19 UTC 2024 - 44.3K bytes - Viewed (0) -
pkg/kubelet/kubelet_pods.go
// preserve all conditions not owned by the kubelet s.Conditions = make([]v1.PodCondition, 0, len(pod.Status.Conditions)+1) for _, c := range pod.Status.Conditions { if !kubetypes.PodConditionByKubelet(c.Type) { s.Conditions = append(s.Conditions, c) } } if utilfeature.DefaultFeatureGate.Enabled(features.PodDisruptionConditions) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 14 16:09:17 UTC 2024 - 101.2K bytes - Viewed (0)