Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 137 for driverName (0.18 sec)

  1. pkg/volume/util/volumeattributesclass_test.go

    			driverName: dirverName1,
    			classes:    []*storagev1alpha1.VolumeAttributesClass{vac1, vac2, vac6},
    			expect:     nil,
    		},
    		{
    			name:       "no default volume attributes class for the driverName1",
    			driverName: dirverName1,
    			classes:    []*storagev1alpha1.VolumeAttributesClass{vac1, vac2, vac6, vac7},
    			expect:     nil,
    		},
    		{
    			name:       "one default volume attributes class for the driverName1",
    Registered: 2024-06-15 01:39
    - Last Modified: 2023-10-31 03:18
    - 5.9K bytes
    - Viewed (0)
  2. 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: 2024-06-15 01:39
    - Last Modified: 2024-06-07 09:18
    - 28.3K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/plugins/dynamicresources/structuredparameters_test.go

    					NodeName:   "node-a",
    					DriverName: "driver",
    					ResourceModel: resourceapi.ResourceModel{
    						NamedResources: &resourceapi.NamedResourcesResources{
    							Instances: []resourceapi.NamedResourcesInstance{{Name: "one"}, {Name: "two"}},
    						},
    					},
    				},
    				&resourceapi.ResourceSlice{
    					NodeName:   "node-b",
    					DriverName: "driver",
    					ResourceModel: resourceapi.ResourceModel{
    Registered: 2024-06-15 01:39
    - Last Modified: 2024-03-27 09:27
    - 34.8K bytes
    - Viewed (0)
  4. pkg/kubelet/cm/dra/state/state_checkpoint_test.go

    			`{"version":"v1","entries":[{"DriverName":"meta-test-driver.cdi.k8s.io","ClassName":"class-name","ClaimUID":"067798be-454e-4be4-9047-1aa06aea63f7","ClaimName":"example","Namespace":"default","PodUIDs":{"139cdb46-f989-4f17-9561-ca10cfb509a6":{}},"ResourceHandles":[{"driverName":"test-driver-1.cdi.k8s.io","data":"{\"a\": \"b\"}"},{"driverName":"test-driver-2.cdi.k8s.io","data":"{\"c\": \"d\"}"}],"CDIDevices":{"test-driver-1.cdi.k8s.io...
    Registered: 2024-06-15 01:39
    - Last Modified: 2024-03-07 21:22
    - 11.9K bytes
    - Viewed (0)
  5. pkg/scheduler/framework/plugins/dynamicresources/structuredparameters.go

    		}
    		if c.classParameters != nil {
    			for _, p := range c.classParameters.VendorParameters {
    				if p.DriverName == driverName {
    					handle.StructuredData.VendorClassParameters = p.Parameters
    					break
    				}
    			}
    		}
    		for _, request := range c.claimParameters.DriverRequests {
    			if request.DriverName == driverName {
    				handle.StructuredData.VendorClaimParameters = request.VendorParameters
    				break
    			}
    		}
    Registered: 2024-06-15 01:39
    - Last Modified: 2024-03-22 09:03
    - 8.7K bytes
    - Viewed (0)
  6. pkg/kubelet/cm/dra/manager_test.go

    					DriverName: driverName,
    					Allocation: &resourcev1alpha2.AllocationResult{
    						ResourceHandles: []resourcev1alpha2.ResourceHandle{
    							{Data: "test-data", DriverName: driverName},
    						},
    					},
    				},
    			},
    			wantErr: true,
    		},
    		{
    			description: "no container actually uses the claim",
    			driverName:  driverName,
    			pod: &v1.Pod{
    Registered: 2024-06-15 01:39
    - Last Modified: 2024-05-03 13:30
    - 42K bytes
    - Viewed (0)
  7. pkg/volume/csi/csi_metrics.go

    func NewMetricsCsi(volumeID string, targetPath string, driverName csiDriverName) volume.MetricsProvider {
    	mc := &metricsCsi{volumeID: volumeID, targetPath: targetPath}
    	mc.csiClientGetter.driverName = driverName
    	return mc
    }
    
    func (mc *metricsCsi) GetMetrics() (*volume.Metrics, error) {
    	startTime := time.Now()
    	defer servermetrics.CollectVolumeStatCalDuration(string(mc.csiClientGetter.driverName), startTime)
    	currentTime := metav1.Now()
    Registered: 2024-06-15 01:39
    - Last Modified: 2023-09-11 06:07
    - 3.9K bytes
    - Viewed (0)
  8. pkg/apis/storage/validation/validation_test.go

    			DriverName: "kubernetes.io/foo",
    		},
    		"invalid empty parameter name": {
    			ObjectMeta: metav1.ObjectMeta{Name: "foo"},
    			DriverName: "kubernetes.io/foo",
    			Parameters: map[string]string{
    				"": "value",
    			},
    		},
    		"driverName: Required value": {
    			ObjectMeta: metav1.ObjectMeta{Name: "foo"},
    			DriverName: "",
    			Parameters: map[string]string{
    				"foo-parameter": "free-form-string",
    Registered: 2024-06-15 01:39
    - Last Modified: 2024-04-24 18:25
    - 69.7K bytes
    - Viewed (0)
  9. pkg/kubelet/cm/dra/plugin/noderesources.go

    	c.mutex.Lock()
    	defer c.mutex.Unlock()
    	if active, ok := c.activePlugins[driverName]; ok {
    		active.cancel(errors.New("plugin has unregistered"))
    		delete(c.activePlugins, driverName)
    		c.queue.Add(driverName)
    	}
    }
    
    // monitorPlugin calls the plugin to retrieve resource information and caches
    // all responses that it gets for processing in the sync method. It keeps
    Registered: 2024-06-15 01:39
    - Last Modified: 2024-05-27 20:12
    - 16.6K bytes
    - Viewed (0)
  10. pkg/apis/resource/validation/validation_resourceslice_test.go

    	"k8s.io/kubernetes/pkg/apis/resource"
    	"k8s.io/utils/ptr"
    )
    
    func testResourceSlice(name, nodeName, driverName string) *resource.ResourceSlice {
    	return &resource.ResourceSlice{
    		ObjectMeta: metav1.ObjectMeta{
    			Name: name,
    		},
    		NodeName:   nodeName,
    		DriverName: driverName,
    		ResourceModel: resource.ResourceModel{
    			NamedResources: &resource.NamedResourcesResources{},
    		},
    	}
    }
    
    Registered: 2024-06-15 01:39
    - Last Modified: 2024-03-14 17:07
    - 8.9K bytes
    - Viewed (0)
Back to top