Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 193 for mypods (0.15 sec)

  1. plugin/pkg/admission/noderestriction/admission_test.go

    			owners:    nil,
    			expectErr: "pods \"test\" is forbidden: node \"mynode\" can only create pods with an owner reference set to itself",
    		},
    		{
    			name:   "valid owner",
    			owners: []metav1.OwnerReference{validOwner},
    		},
    		{
    			name:      "duplicate owner",
    			owners:    []metav1.OwnerReference{validOwner, validOwner},
    			expectErr: "can only create pods with a single owner reference set to itself",
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 73.2K bytes
    - Viewed (0)
  2. pkg/serviceaccount/claims_test.go

    		ObjectMeta: metav1.ObjectMeta{
    			Namespace: "myns",
    			Name:      "mypod",
    			UID:       "mypod-uid",
    		},
    	}
    	sec := &core.Secret{
    		ObjectMeta: metav1.ObjectMeta{
    			Namespace: "myns",
    			Name:      "mysecret",
    			UID:       "mysecret-uid",
    		},
    	}
    	node := &core.Node{
    		ObjectMeta: metav1.ObjectMeta{
    			Name: "mynode",
    			UID:  "mynode-uid",
    		},
    	}
    	cs := []struct {
    		// input
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  3. pkg/controller/job/pod_failure_policy_test.go

    	"k8s.io/kubernetes/pkg/features"
    	"k8s.io/utils/ptr"
    )
    
    func TestMatchPodFailurePolicy(t *testing.T) {
    	validPodObjectMeta := metav1.ObjectMeta{
    		Namespace: "default",
    		Name:      "mypod",
    	}
    	ignore := batch.PodFailurePolicyActionIgnore
    	failJob := batch.PodFailurePolicyActionFailJob
    	failIndex := batch.PodFailurePolicyActionFailIndex
    	count := batch.PodFailurePolicyActionCount
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  4. pkg/printers/internalversion/printers_test.go

    								},
    							},
    						},
    					},
    				},
    			},
    			// Columns: Name, Reference, Targets, MinPods, MaxPods, Replicas, Age
    			expected: []metav1.TableRow{{Cells: []interface{}{"some-hpa", "ReplicationController/some-rc", "50m/100m", "2", int64(10), int64(4), "<unknown>"}}},
    		},
    		// pods source type (no current)
    		{
    			hpa: autoscaling.HorizontalPodAutoscaler{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 218.6K bytes
    - Viewed (0)
  5. src/internal/coverage/pods/pods.go

    			pod.Origins = append(pod.Origins, e.origin)
    			pod.ProcessIDs = append(pod.ProcessIDs, e.pid)
    		}
    		pods = append(pods, pod)
    	}
    	slices.SortFunc(pods, func(a, b Pod) int {
    		return strings.Compare(a.MetaFile, b.MetaFile)
    	})
    	return pods
    }
    
    func warning(s string, a ...interface{}) {
    	fmt.Fprintf(os.Stderr, "warning: ")
    	fmt.Fprintf(os.Stderr, s, a...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  6. cmd/kubemark/app/hollow_node.go

    	fs.IntVar(&c.MaxPods, "max-pods", maxPods, "Number of pods that can run on this Kubelet.")
    	bindableExtendedResources := cliflag.ConfigurationMap(c.ExtendedResources)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 08:58:18 UTC 2024
    - 11K bytes
    - Viewed (0)
  7. pkg/kubelet/userns/userns_manager_test.go

    		runningPods          []*kubecontainer.Pod
    		pods                 []*v1.Pod
    		listPods             []types.UID /* pods to list */
    		podSetBeforeCleanup  []types.UID /* pods to record before cleanup */
    		podSetAfterCleanup   []types.UID /* pods set expected after cleanup */
    		podUnsetAfterCleanup []types.UID /* pods set expected after cleanup */
    	}{
    		{
    			name:     "no stale pods",
    			listPods: []types.UID{"pod-1", "pod-2"},
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  8. pkg/kubelet/volumemanager/cache/actual_state_of_world_test.go

    func Test_MarkVolumeAsAttached_Positive_NewVolume(t *testing.T) {
    	// Arrange
    	volumePluginMgr, plugin := volumetesting.GetTestKubeletVolumePluginMgr(t)
    	asw := NewActualStateOfWorld("mynode" /* nodeName */, volumePluginMgr)
    	pod := &v1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name: "pod1",
    			UID:  "pod1uid",
    		},
    		Spec: v1.PodSpec{
    			Volumes: []v1.Volume{
    				{
    					Name: "volume-name",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 46.3K bytes
    - Viewed (0)
  9. pkg/kubelet/nodestatus/setters_test.go

    					},
    				},
    			},
    		},
    		{
    			desc:    "on failure to get machine info, allocatable and capacity for memory and cpu are set to 0, pods to maxPods",
    			node:    &v1.Node{},
    			maxPods: 110,
    			// podsPerCore is not accounted for when getting machine info fails
    			podsPerCore:      1,
    			machineInfoError: fmt.Errorf("foo"),
    			expectNode: &v1.Node{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 21:47:24 UTC 2024
    - 76.1K bytes
    - Viewed (0)
  10. pkg/controller/tainteviction/taint_eviction_test.go

    		pods, err := c.CoreV1().Pods(corev1.NamespaceAll).List(ctx, metav1.ListOptions{
    			FieldSelector: selector.String(),
    			LabelSelector: labels.Everything().String(),
    		})
    		if err != nil {
    			return []*corev1.Pod{}, fmt.Errorf("failed to get Pods assigned to node %v", nodeName)
    		}
    		rPods := make([]*corev1.Pod, len(pods.Items))
    		for i := range pods.Items {
    			rPods[i] = &pods.Items[i]
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 31.3K bytes
    - Viewed (0)
Back to top