Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for driver_name (0.18 sec)

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

    	var allErrs field.ErrorList
    	driverNames := sets.New[string]()
    	for i, request := range requests {
    		idxPath := fldPath.Index(i)
    		driverName := request.DriverName
    		allErrs = append(allErrs, validateResourceDriverName(driverName, idxPath.Child("driverName"))...)
    		if driverNames.Has(driverName) {
    			allErrs = append(allErrs, field.Duplicate(idxPath.Child("driverName"), driverName))
    		} else {
    			driverNames.Insert(driverName)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 09:18:10 UTC 2024
    - 28.3K bytes
    - Viewed (0)
  2. pkg/apis/resource/validation/validation_resourceclaim_test.go

    				claim.Status.DriverName = "valid"
    				return claim
    			},
    		},
    		"invalid-add-allocation": {
    			wantFailures: field.ErrorList{field.Required(field.NewPath("status", "driverName"), "must be specified when `allocation` is set")},
    			oldClaim:     validClaim,
    			update: func(claim *resource.ResourceClaim) *resource.ResourceClaim {
    				// DriverName must also get set here!
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 09:18:10 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  3. pkg/apis/resource/validation/validation_resourceclass_test.go

    	"k8s.io/kubernetes/pkg/apis/core"
    	"k8s.io/kubernetes/pkg/apis/resource"
    	"k8s.io/utils/pointer"
    )
    
    func testClass(name, driverName string) *resource.ResourceClass {
    	return &resource.ResourceClass{
    		ObjectMeta: metav1.ObjectMeta{
    			Name: name,
    		},
    		DriverName: driverName,
    	}
    }
    
    func TestValidateClass(t *testing.T) {
    	goodName := "foo"
    	now := metav1.Now()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 09:18:10 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  4. pkg/kubelet/volumemanager/cache/desired_state_of_world.go

    	}
    
    	// It's a CSI volume
    	driverName, err := csi.GetCSIDriverName(spec)
    	if err != nil {
    		// In theory this is unreachable - such volume would not pass validation.
    		klog.V(4).ErrorS(err, "failed to get CSI driver name from volume spec")
    		driverName = "unknown"
    	}
    	// `/` is used to separate plugin + CSI driver in util.GetUniqueVolumeName() too
    	return pluginName + "/" + driverName
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  5. pkg/printers/internalversion/printers.go

    		{Name: "Name", Type: "string", Format: "name", Description: metav1.ObjectMeta{}.SwaggerDoc()["name"]},
    		{Name: "DriverName", Type: "string", Description: storagev1alpha1.VolumeAttributesClass{}.SwaggerDoc()["driverName"]},
    		{Name: "Age", Type: "string", Description: metav1.ObjectMeta{}.SwaggerDoc()["creationTimestamp"]},
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 128.3K bytes
    - Viewed (0)
  6. CHANGELOG/CHANGELOG-1.31.md

    - DRA: client-side validation of a ResourceHandle would have accepted a missing DriverName, whereas server-side validation then would have raised an error. ([#124075](https://github.com/kubernetes/kubernetes/pull/124075), [@pohly](https://github.com/pohly)) [SIG Apps]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 20:34:14 UTC 2024
    - 60.3K bytes
    - Viewed (0)
  7. pkg/printers/internalversion/printers_test.go

    				},
    				DriverName: "fake",
    			},
    			expected: []metav1.TableRow{{Cells: []interface{}{"vac1", "fake", "0s"}}},
    		},
    		{
    			vac: storage.VolumeAttributesClass{
    				ObjectMeta: metav1.ObjectMeta{
    					Name:              "vac2",
    					CreationTimestamp: metav1.Time{Time: time.Now().Add(-3e11)},
    				},
    				DriverName: "fake",
    				Parameters: map[string]string{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 218.6K bytes
    - Viewed (0)
  8. pkg/generated/openapi/zz_generated.openapi.go

    				Type:        []string{"object"},
    				Properties: map[string]spec.Schema{
    					"driverName": {
    						SchemaProps: spec.SchemaProps{
    							Description: "DriverName specifies the name of the resource driver whose kubelet plugin should be invoked to process this ResourceHandle's data once it lands on a node. This may differ from the DriverName set in ResourceClaimStatus this ResourceHandle is embedded in.",
    							Default:     "",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 18:37:07 UTC 2024
    - 3M bytes
    - Viewed (0)
  9. api/openapi-spec/swagger.json

            },
            "driverName": {
              "description": "DriverName specifies the name of the resource driver whose kubelet plugin should be invoked to process this ResourceHandle's data once it lands on a node. This may differ from the DriverName set in ResourceClaimStatus this ResourceHandle is embedded in.",
              "type": "string"
            },
            "structuredData": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 18:37:07 UTC 2024
    - 3.1M bytes
    - Viewed (0)
Back to top