Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 182 for pod4 (0.25 sec)

  1. pkg/kube/kclient/index_test.go

    	c.Kube().CoreV1().Pods("ns").Create(context.Background(), pod2, metav1.CreateOptions{})
    	assertIndex(k1, pod1) // Original one must still persist
    	assertIndex(k2, pod2) // New one should be there, eventually
    
    	// Create another pod with the same SA; we ought to find multiple now.
    	c.Kube().CoreV1().Pods("ns").Create(context.Background(), pod3, metav1.CreateOptions{})
    	assertIndex(k1, pod1, pod3) // Original one must still persist
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 04 03:49:30 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  2. staging/src/k8s.io/cli-runtime/pkg/printers/managedfields_test.go

    		expected runtime.Object
    	}{
    		{
    			name: "pod without managedFields",
    			object: &v1.Pod{
    				ObjectMeta: metav1.ObjectMeta{Name: "pod1"},
    			},
    			expected: &v1.Pod{
    				ObjectMeta: metav1.ObjectMeta{Name: "pod1"},
    			},
    		},
    		{
    			name: "pod with managedFields",
    			object: &v1.Pod{
    				ObjectMeta: metav1.ObjectMeta{
    					Name: "pod1",
    					ManagedFields: []metav1.ManagedFieldsEntry{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 16 14:52:03 UTC 2021
    - 2.6K bytes
    - Viewed (0)
  3. hack/testdata/sorted-pods/sorted-pod3.yaml

    apiVersion: v1
    kind: Pod
    metadata:
      name: sorted-pod3
      creationTimestamp: "2018-08-30T14:10:53Z"
      labels:
        name: sorted-pod1-label
    spec:
      containers:
      - name: kubernetes-pause3
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 24 07:02:51 UTC 2024
    - 223 bytes
    - Viewed (0)
  4. pkg/controller/replicaset/replica_set_utils_test.go

    				newPod("pod2", fullyLabelledRS, v1.PodRunning, nil, true),
    			},
    			apps.ReplicaSetStatus{
    				Replicas:             2,
    				FullyLabeledReplicas: 2,
    				ReadyReplicas:        2,
    				AvailableReplicas:    2,
    			},
    		},
    		{
    			"2 not fully labelled pods",
    			notFullyLabelledRS,
    			[]*v1.Pod{
    				newPod("pod1", notFullyLabelledRS, v1.PodRunning, nil, true),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 19 20:18:23 UTC 2018
    - 6.6K bytes
    - Viewed (0)
  5. hack/testdata/sorted-pods/sorted-pod1.yaml

    apiVersion: v1
    kind: Pod
    metadata:
      name: sorted-pod1
      creationTimestamp: "2018-08-30T14:10:58Z"
      labels:
        name: sorted-pod3-label
    spec:
      containers:
      - name: kubernetes-pause2
        image: registry.k8s.io/pause:3.10
        resources:
          requests:
            memory: "64Mi"
            cpu: "250m"
          limits:
            memory: "128Mi"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 24 07:02:51 UTC 2024
    - 355 bytes
    - Viewed (0)
  6. pkg/kubelet/config/apiserver_test.go

    	pod1 := v1.Pod{
    		ObjectMeta: metav1.ObjectMeta{Name: "p", Namespace: "one"},
    		Spec:       v1.PodSpec{Containers: []v1.Container{{Image: "image/one"}}}}
    	pod2 := v1.Pod{
    		ObjectMeta: metav1.ObjectMeta{Name: "p", Namespace: "two"},
    		Spec:       v1.PodSpec{Containers: []v1.Container{{Image: "image/blah"}}}}
    
    	// Setup fake api client.
    	fakeWatch := watch.NewFake()
    	lw := fakePodLW{
    		listResp:  &v1.PodList{Items: []v1.Pod{pod1, pod2}},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 22 18:31:03 UTC 2017
    - 5.6K bytes
    - Viewed (0)
  7. hack/testdata/sorted-pods/sorted-pod2.yaml

    apiVersion: v1
    kind: Pod
    metadata:
      name: sorted-pod2
      creationTimestamp: "2018-08-30T14:10:55Z"
      labels:
        name: sorted-pod2-label
    spec:
      containers:
      - name: kubernetes-pause1
        image: registry.k8s.io/pause:3.10
        resources:
          requests:
            memory: "1G"
            cpu: "0.5"
          limits:
            memory: "2G"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 24 07:02:51 UTC 2024
    - 347 bytes
    - Viewed (0)
  8. pkg/volume/local/local_linux_test.go

    	fsGroup1 := int64(s.Gid)
    	fsGroup2 := fsGroup1 + 1
    	pod1 := &v1.Pod{ObjectMeta: metav1.ObjectMeta{UID: types.UID("poduid")}}
    	pod1.Spec.SecurityContext = &v1.PodSecurityContext{
    		FSGroup: &fsGroup1,
    	}
    	pod2 := &v1.Pod{ObjectMeta: metav1.ObjectMeta{UID: types.UID("poduid")}}
    	pod2.Spec.SecurityContext = &v1.PodSecurityContext{
    		FSGroup: &fsGroup2,
    	}
    	err = testFSGroupMount(plug, pod1, tmpDir, fsGroup1)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 2K bytes
    - Viewed (0)
  9. pkg/scheduler/util/utils.go

    func GetPodFullName(pod *v1.Pod) string {
    	// Use underscore as the delimiter because it is not allowed in pod name
    	// (DNS subdomain format).
    	return pod.Name + "_" + pod.Namespace
    }
    
    // GetPodStartTime returns start time of the given pod or current timestamp
    // if it hasn't started yet.
    func GetPodStartTime(pod *v1.Pod) *metav1.Time {
    	if pod.Status.StartTime != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Sep 21 01:40:44 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  10. hack/testdata/pod.yaml

    apiVersion: v1
    kind: Pod
    metadata:
      name: test-pod
      labels:
        name: test-pod-label
    spec:
      containers:
      - name: kubernetes-pause
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 24 07:02:51 UTC 2024
    - 172 bytes
    - Viewed (0)
Back to top