Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for Statuses (0.14 sec)

  1. pkg/printers/internalversion/printers.go

    				current := "<unknown>"
    				if len(statuses) > i && statuses[i].External != nil && statuses[i].External.Current.AverageValue != nil {
    					current = statuses[i].External.Current.AverageValue.String()
    				}
    				list = append(list, fmt.Sprintf("%s/%s (avg)", current, spec.External.Target.AverageValue.String()))
    			} else {
    				current := "<unknown>"
    				if len(statuses) > i && statuses[i].External != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 128.3K bytes
    - Viewed (0)
  2. pkg/kubelet/kubelet_test.go

    		cStatus := &kubecontainer.Status{
    			ID:   kubecontainer.BuildContainerID("test", id),
    			Name: containerName,
    		}
    		// Rearrange container statuses
    		if i%2 == 0 {
    			cStatuses = append(cStatuses, cStatus)
    		} else {
    			cStatuses = append([]*kubecontainer.Status{cStatus}, cStatuses...)
    		}
    		specContainerList = append(specContainerList, v1.Container{Name: containerName})
    	}
    	pod := podWithUIDNameNs("uid1", "foo", "test")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 106.9K bytes
    - Viewed (0)
  3. pkg/kubelet/kubelet_pods.go

    				Message: reason.Message,
    			},
    		}
    		statuses[container.Name] = status
    	}
    
    	// Sort the container statuses since clients of this interface expect the list
    	// of containers in a pod has a deterministic order.
    	if isInitContainer {
    		return kubetypes.SortStatusesOfInitContainers(pod, statuses)
    	}
    	containerStatuses := make([]v1.ContainerStatus, 0, len(statuses))
    	for _, status := range statuses {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 101.2K bytes
    - Viewed (0)
  4. pkg/kubelet/kubelet_pods_test.go

    					CPURequest:  tc.Resources[i].Requests.Cpu(),
    				}
    			}
    		}
    
    		t.Logf("TestCase: %q", tdesc)
    		cStatuses := kubelet.convertToAPIContainerStatuses(tPod, testPodStatus, tc.OldStatus, tPod.Spec.Containers, false, false)
    		assert.Equal(t, tc.Expected, cStatuses)
    	}
    }
    
    func TestConvertToAPIContainerStatusesForUser(t *testing.T) {
    	nowTime := time.Now()
    	testContainerName := "ctr0"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 198.8K bytes
    - Viewed (0)
  5. pkg/scheduler/schedule_one_test.go

    				"c": framework.NewStatus(framework.UnschedulableAndUnresolvable, fmt.Sprintf("FakeExtender: node %q failed and unresolvable", "c")),
    			},
    		},
    		{
    			name: "extender may overwrite the statuses",
    			extenders: []tf.FakeExtender{
    				{
    					ExtenderName: "FakeExtender1",
    					Predicates: []tf.FitPredicate{func(pod *v1.Pod, node *framework.NodeInfo) *framework.Status {
    						if node.Node().Name == "a" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:20:55 UTC 2024
    - 128.1K bytes
    - Viewed (0)
  6. pkg/kubelet/kubelet.go

    	// it later). Set the status and phase appropriately
    	runnable := kl.canRunPod(pod)
    	if !runnable.Admit {
    		// Pod is not runnable; and update the Pod and Container statuses to why.
    		if apiPodStatus.Phase != v1.PodFailed && apiPodStatus.Phase != v1.PodSucceeded {
    			apiPodStatus.Phase = v1.PodPending
    		}
    		apiPodStatus.Reason = runnable.Reason
    		apiPodStatus.Message = runnable.Message
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 126.1K bytes
    - Viewed (0)
  7. CHANGELOG/CHANGELOG-1.4.md

          rolling forward.
          The status has moved from annotation key
          `pods.beta.kubernetes.io/init-container-statuses` to
          `pods.beta.kubernetes.io/init-container-statuses`.
        * Any code that inspects this annotation should be changed to use the new key.
          State of Initialization will continue to be reported in both pods.alpha.kubernetes.io/initialized
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Dec 24 02:28:26 UTC 2020
    - 133.5K bytes
    - Viewed (0)
  8. cmd/bucket-replication.go

    		if duration < time.Second {
    			// Make sure to sleep at least a second to avoid high CPU ticks.
    			duration = time.Second
    		}
    		time.Sleep(duration)
    	}
    }
    
    // Loads bucket replication resync statuses into memory.
    func (p *ReplicationPool) loadResync(ctx context.Context, buckets []BucketInfo, objAPI ObjectLayer) error {
    	// Make sure only one node running resync on the cluster.
    	ctx, cancel := globalLeaderLock.GetLock(ctx)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 06:56:12 UTC 2024
    - 114.4K bytes
    - Viewed (0)
  9. pkg/printers/internalversion/printers_test.go

    						{Type: metav1.RowCompleted, Status: metav1.ConditionTrue, Reason: "Succeeded", Message: "The pod has completed successfully."},
    					},
    				},
    			},
    		},
    		{
    			// Test pod has container statuses for non-existent initContainers and containers
    			api.Pod{
    				ObjectMeta: metav1.ObjectMeta{Name: "test4"},
    				Spec: api.PodSpec{
    					InitContainers: []api.Container{
    						{Name: "init1", Image: "initimage"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 218.6K bytes
    - Viewed (0)
  10. src/runtime/proc.go

    		goto retry
    	}
    
    	// We've inverted the order in which it gets G's from the local P's runnable queue
    	// and then advances the head pointer because we don't want to mess up the statuses of G's
    	// while runqdrain() and runqsteal() are running in parallel.
    	// Thus we should advance the head pointer before draining the local P into a gQueue,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
Back to top