Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for resources_ (0.26 sec)

  1. pkg/apis/admissionregistration/validation/validation_test.go

    					APIGroups:   []string{"a"},
    					APIVersions: []string{"a"},
    					Resources:   []string{"*/a", "x/a"},
    				},
    			}},
    		},
    		}, true),
    		expectedError: `webhooks[0].rules[0].resources[1]: Invalid value: "x/a": if '*/a' is present, must not specify x/a`,
    	}, {
    		name: "resource */* cannot mix with other resources",
    		config: newValidatingWebhookConfiguration([]admissionregistration.ValidatingWebhook{{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 147.1K bytes
    - Viewed (0)
  2. pkg/kubelet/kubelet_test.go

    	resourceQuantity0 := *resource.NewQuantity(int64(0), resource.DecimalSI)
    	resourceQuantity1 := *resource.NewQuantity(int64(1), resource.DecimalSI)
    	resourceQuantity2 := *resource.NewQuantity(int64(2), resource.DecimalSI)
    	resourceQuantityInvalid := *resource.NewQuantity(int64(-1), resource.DecimalSI)
    	allowedPodQuantity := *resource.NewQuantity(int64(10), resource.DecimalSI)
    	nodes := []*v1.Node{
    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/api/pod/util_test.go

    			},
    		},
    		{
    			desc: "resources unchanged",
    			newPod: &api.Pod{
    				Spec: api.PodSpec{
    					Containers: []api.Container{
    						{
    							Name:  "c1",
    							Image: "image",
    							Resources: api.ResourceRequirements{
    								Requests: api.ResourceList{api.ResourceCPU: resource.MustParse("100m")},
    								Limits:   api.ResourceList{api.ResourceCPU: resource.MustParse("200m")},
    							},
    						},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 108.8K bytes
    - Viewed (0)
  4. pkg/kubelet/kubelet_pods.go

    				limits[v1.ResourceCPU] = cStatus.Resources.CPULimit.DeepCopy()
    			} else {
    				determineResource(v1.ResourceCPU, container.Resources.Limits, oldStatus.Resources.Limits, limits)
    			}
    			if cStatus.Resources != nil && cStatus.Resources.MemoryLimit != nil {
    				limits[v1.ResourceMemory] = cStatus.Resources.MemoryLimit.DeepCopy()
    			} else {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 101.2K bytes
    - Viewed (0)
  5. cluster/gce/gci/configure-helper.sh

        verbs: ["get"]
        resources:
          - group: "" # core
            resources: ["configmaps"]
      - level: None
        users: ["kubelet"] # legacy kubelet identity
        verbs: ["get"]
        resources:
          - group: "" # core
            resources: ["nodes", "nodes/status"]
      - level: None
        userGroups: ["system:nodes"]
        verbs: ["get"]
        resources:
          - group: "" # core
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 22:07:47 UTC 2024
    - 141.1K bytes
    - Viewed (0)
  6. pkg/kubelet/kubelet_pods_test.go

    					Resources:   &v1.ResourceRequirements{},
    				},
    			},
    		},
    	} {
    		tPod := testPod.DeepCopy()
    		tPod.Name = fmt.Sprintf("%s-%d", testPod.Name, idx)
    		for i := range tPod.Spec.Containers {
    			if tc.Resources != nil {
    				tPod.Spec.Containers[i].Resources = tc.Resources[i]
    			}
    			kubelet.statusManager.SetPodAllocation(tPod)
    			if tc.Resources != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 198.8K bytes
    - Viewed (0)
  7. pkg/kubelet/kubelet.go

    	for _, c := range pod.Spec.Containers {
    		if cs, ok := podutil.GetContainerStatus(podStatus.ContainerStatuses, c.Name); ok {
    			if cs.Resources == nil {
    				continue
    			}
    			if !cmp.Equal(c.Resources.Limits, cs.Resources.Limits) || !cmp.Equal(cs.AllocatedResources, cs.Resources.Requests) {
    				return true
    			}
    		}
    	}
    	return false
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 126.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.td

        func @write_only_resource(%value: tensor<i32>, %resource: tensor<*x!tf_type.resource<tensor<i32>>>) {
          %resource_read = "tf.ReadVariableOp"(%resource) : (tensor<*x!tf_type.resource<tensor<i32>>>) -> tensor<i32>
          %0 = "tf_device.cluster_func"(%value, %resource_read) {func = @cluster} : (tensor<i32>, tensor<i32>) -> tensor<i32>
          "tf.AssignVariableOp"(%resource, %0) : (tensor<*x!tf_type.resource<tensor<i32>>>, tensor<i32>) -> ()
          return
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 99.6K bytes
    - Viewed (0)
  9. pkg/printers/internalversion/printers.go

    	}
    
    	resources := make([]api.ResourceName, 0, len(resourceQuota.Status.Hard))
    	for resource := range resourceQuota.Status.Hard {
    		resources = append(resources, resource)
    	}
    	sort.Sort(SortableResourceNames(resources))
    
    	requestColumn := bytes.NewBuffer([]byte{})
    	limitColumn := bytes.NewBuffer([]byte{})
    	for i := range resources {
    		w := requestColumn
    		resource := resources[i]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 128.3K bytes
    - Viewed (0)
  10. pkg/scheduler/schedule_one_test.go

    					v1.ResourceCPU:    *(resource.NewQuantity(cpu/2, resource.DecimalSI)),
    					v1.ResourceMemory: *(resource.NewQuantity(mem/5, resource.DecimalSI)),
    					v1.ResourcePods:   *(resource.NewQuantity(10, resource.DecimalSI)),
    				},
    				Allocatable: v1.ResourceList{
    					v1.ResourceCPU:    *(resource.NewQuantity(cpu/2, resource.DecimalSI)),
    					v1.ResourceMemory: *(resource.NewQuantity(mem/5, resource.DecimalSI)),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:20:55 UTC 2024
    - 128.1K bytes
    - Viewed (0)
Back to top