Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for Statuses (0.16 sec)

  1. pkg/kubelet/kuberuntime/kuberuntime_container.go

    		}
    		status := resp.GetStatus()
    		if status == nil {
    			return nil, remote.ErrContainerStatusNil
    		}
    		cStatus := m.convertToKubeContainerStatus(status)
    		statuses = append(statuses, cStatus)
    	}
    
    	sort.Sort(containerStatusByCreated(statuses))
    	return statuses, nil
    }
    
    func toKubeContainerStatus(status *runtimeapi.ContainerStatus, runtimeName string) *kubecontainer.Status {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 54.7K bytes
    - Viewed (0)
  2. pkg/kubelet/status/status_manager_test.go

    	verifyUpdates(t, m, 0)
    }
    
    // shuffle returns a new shuffled list of container statuses.
    func shuffle(statuses []v1.ContainerStatus) []v1.ContainerStatus {
    	numStatuses := len(statuses)
    	randIndexes := rand.Perm(numStatuses)
    	shuffled := make([]v1.ContainerStatus, numStatuses)
    	for i := 0; i < numStatuses; i++ {
    		shuffled[i] = statuses[randIndexes[i]]
    	}
    	return shuffled
    }
    
    func TestStatusEquality(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 02 16:27:19 UTC 2024
    - 68.1K bytes
    - Viewed (0)
  3. pkg/controller/podautoscaler/horizontal.go

    	metricSpecs []autoscalingv2.MetricSpec) (replicas int32, metric string, statuses []autoscalingv2.MetricStatus, timestamp time.Time, err error) {
    
    	selector, err := a.validateAndParseSelector(hpa, scale.Status.Selector)
    	if err != nil {
    		return -1, "", nil, time.Time{}, err
    	}
    
    	specReplicas := scale.Spec.Replicas
    	statusReplicas := scale.Status.Replicas
    	statuses = make([]autoscalingv2.MetricStatus, len(metricSpecs))
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 63.6K bytes
    - Viewed (0)
  4. pkg/controller/nodelifecycle/node_lifecycle_controller.go

    	// - both saved and current statuses have Ready Conditions and they have the same LastProbeTime - nothing happened on that Node, it may be
    	//   unresponsive, so we leave it as it is,
    	// - both saved and current statuses have Ready Conditions, they have different LastProbeTimes, but the same Ready Condition State -
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  5. pkg/kubelet/kuberuntime/kuberuntime_manager_test.go

    				InitContainersToStart:    []int{0},
    				ContainersToStart:        []int{},
    				ContainersToKill:         getKillMapWithInitContainers(basePod, baseStatus, []int{}),
    			},
    		},
    		"some of the init container statuses are missing but the last init container is running, don't restart preceding ones": {
    			mutatePodFn: func(pod *v1.Pod) { pod.Spec.RestartPolicy = v1.RestartPolicyAlways },
    			mutateStatusFn: func(status *kubecontainer.PodStatus) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 96K bytes
    - Viewed (0)
  6. pkg/kubelet/kuberuntime/kuberuntime_manager.go

    						klog.ErrorS(err, "getPodContainerStatuses for pod failed", "pod", klog.KObj(pod))
    					}
    					return nil, err
    				}
    			} else {
    				// Get the statuses of all containers visible to the pod and
    				// timestamp from sandboxStatus.
    				timestamp = time.Unix(resp.Timestamp, 0)
    				for _, cs := range resp.ContainersStatuses {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 02:01:31 UTC 2024
    - 64.7K bytes
    - Viewed (0)
  7. pkg/kubelet/pod_workers_test.go

    	if len(podWorkers.podUpdates) != 0 {
    		t.Errorf("Incorrect number of open channels %v", len(podWorkers.podUpdates))
    	}
    	if len(podWorkers.podSyncStatuses) != 2 {
    		t.Errorf("Incorrect number of tracked statuses: %#v", podWorkers.podSyncStatuses)
    	}
    
    	for uid := range desiredPods {
    		pod := newNamedPod(string(uid), "ns", "name", false)
    		podWorkers.UpdatePod(UpdatePodOptions{
    			Pod:        pod,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 75.6K bytes
    - Viewed (0)
Back to top