Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for resourceClassName (0.3 sec)

  1. pkg/apis/resource/validation/validation_resourceclaimtemplate_test.go

    				spec := validClaimTemplate.Spec.DeepCopy()
    				spec.Spec.ResourceClassName += "2"
    				return *spec
    			}(), "field is immutable")},
    			oldClaimTemplate: validClaimTemplate,
    			update: func(template *resource.ResourceClaimTemplate) *resource.ResourceClaimTemplate {
    				template.Spec.Spec.ResourceClassName += "2"
    				return template
    			},
    		},
    		"invalid-update-remove-parameters": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 09:18:10 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/dra/manager_test.go

    				t.Fatalf("driverName mismatch: expected %s, got %s", test.resourceClaim.Status.DriverName, claimInfo.DriverName)
    			}
    			if claimInfo.ClassName != test.resourceClaim.Spec.ResourceClassName {
    				t.Fatalf("resourceClassName mismatch: expected %s, got %s", test.resourceClaim.Spec.ResourceClassName, claimInfo.ClassName)
    			}
    			if len(claimInfo.PodUIDs) != 1 || !claimInfo.PodUIDs.Has(string(test.pod.UID)) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 03 13:30:29 UTC 2024
    - 42K bytes
    - Viewed (0)
  3. staging/src/k8s.io/api/testdata/v1.30.0/resource.k8s.io.v1alpha2.ResourceClaimTemplate.yaml

        selfLink: selfLinkValue
        uid: uidValue
      spec:
        allocationMode: allocationModeValue
        parametersRef:
          apiGroup: apiGroupValue
          kind: kindValue
          name: nameValue
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 08:52:25 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  4. pkg/apis/resource/validation/validation_resourceclaim_test.go

    				spec := validClaim.Spec.DeepCopy()
    				spec.ResourceClassName += "2"
    				return *spec
    			}(), "field is immutable")},
    			oldClaim: validClaim,
    			update: func(claim *resource.ResourceClaim) *resource.ResourceClaim {
    				claim.Spec.ResourceClassName += "2"
    				return claim
    			},
    		},
    		"invalid-update-remove-parameters": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 09:18:10 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  5. staging/src/k8s.io/api/testdata/v1.30.0/resource.k8s.io.v1alpha2.ResourceClaimTemplate.json

              "time": "2004-01-01T01:01:01Z",
              "fieldsType": "fieldsTypeValue",
              "fieldsV1": {},
              "subresource": "subresourceValue"
            }
          ]
        },
        "spec": {
          "resourceClassName": "resourceClassNameValue",
          "parametersRef": {
            "apiGroup": "apiGroupValue",
            "kind": "kindValue",
            "name": "nameValue"
          },
          "allocationMode": "allocationModeValue"
        }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 08:52:25 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/api/testdata/v1.30.0/resource.k8s.io.v1alpha2.ResourceClaim.yaml

      selfLink: selfLinkValue
      uid: uidValue
    spec:
      allocationMode: allocationModeValue
      parametersRef:
        apiGroup: apiGroupValue
        kind: kindValue
        name: nameValue
      resourceClassName: resourceClassNameValue
    status:
      allocation:
        availableOnNodes:
          nodeSelectorTerms:
          - matchExpressions:
            - key: keyValue
              operator: operatorValue
              values:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 08:52:25 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  7. staging/src/k8s.io/api/testdata/v1.30.0/resource.k8s.io.v1alpha2.ResourceClaim.json

            "time": "2004-01-01T01:01:01Z",
            "fieldsType": "fieldsTypeValue",
            "fieldsV1": {},
            "subresource": "subresourceValue"
          }
        ]
      },
      "spec": {
        "resourceClassName": "resourceClassNameValue",
        "parametersRef": {
          "apiGroup": "apiGroupValue",
          "kind": "kindValue",
          "name": "nameValue"
        },
        "allocationMode": "allocationModeValue"
      },
      "status": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 08:52:25 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  8. pkg/controller/resourceclaim/controller_test.go

    	claim := &resourcev1alpha2.ResourceClaim{
    		ObjectMeta: metav1.ObjectMeta{Name: name, Namespace: namespace},
    		Spec: resourcev1alpha2.ResourceClaimSpec{
    			ResourceClassName: classname,
    			AllocationMode:    resourcev1alpha2.AllocationModeWaitForFirstConsumer,
    		},
    	}
    	if owner != nil {
    		claim.OwnerReferences = []metav1.OwnerReference{*owner}
    	}
    
    	return claim
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 06 08:56:16 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  9. pkg/apis/resource/validation/validation.go

    	allErrs := field.ErrorList{}
    	for _, msg := range corevalidation.ValidateClassName(spec.ResourceClassName, false) {
    		allErrs = append(allErrs, field.Invalid(fldPath.Child("resourceClassName"), spec.ResourceClassName, msg))
    	}
    	allErrs = append(allErrs, validateResourceClaimParametersRef(spec.ParametersRef, fldPath.Child("parametersRef"))...)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 09:18:10 UTC 2024
    - 28.3K bytes
    - Viewed (0)
  10. pkg/kubelet/cm/dra/claiminfo.go

    	if len(resourceHandles) == 0 {
    		resourceHandles = make([]resourcev1alpha2.ResourceHandle, 1)
    	}
    	claimInfoState := state.ClaimInfoState{
    		DriverName:      claim.Status.DriverName,
    		ClassName:       claim.Spec.ResourceClassName,
    		ClaimUID:        claim.UID,
    		ClaimName:       claim.Name,
    		Namespace:       claim.Namespace,
    		PodUIDs:         sets.New[string](),
    		ResourceHandles: resourceHandles,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 03 13:30:31 UTC 2024
    - 7.9K bytes
    - Viewed (0)
Back to top