Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 121 for driverNames (0.17 sec)

  1. pkg/volume/util/attach_limit_test.go

    	if csiLimitKeyLonger != expectedCSIKey {
    		t.Errorf("Expected limit to be %s got %s", expectedCSIKey, csiLimitKeyLonger)
    	}
    }
    
    func getDriverHash(driverName string) string {
    	charsFromDriverName := driverName[:23]
    	hash := sha1.New()
    	hash.Write([]byte(driverName))
    	hashed := hex.EncodeToString(hash.Sum(nil))
    	hashed = hashed[:16]
    	return CSIAttachLimitPrefix + charsFromDriverName + hashed
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 05 16:29:00 UTC 2018
    - 1.7K bytes
    - Viewed (0)
  2. staging/src/k8s.io/api/resource/v1alpha2/types.go

    type ResourceHandle struct {
    	// 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.
    	DriverName string `json:"driverName" protobuf:"bytes,1,name=driverName"`
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 27 10:22:35 UTC 2024
    - 30K bytes
    - Viewed (0)
  3. pkg/volume/util/attach_limit.go

    )
    
    // GetCSIAttachLimitKey returns limit key used for CSI volumes
    func GetCSIAttachLimitKey(driverName string) string {
    	csiPrefixLength := len(CSIAttachLimitPrefix)
    	totalkeyLength := csiPrefixLength + len(driverName)
    	if totalkeyLength >= ResourceNameLengthLimit {
    		charsFromDriverName := driverName[:23]
    		hash := sha1.New()
    		hash.Write([]byte(driverName))
    		hashed := hex.EncodeToString(hash.Sum(nil))
    		hashed = hashed[:16]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 10 17:25:30 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  4. pkg/volume/flexvolume/volume.go

    import (
    	"k8s.io/mount-utils"
    	utilstrings "k8s.io/utils/strings"
    
    	"k8s.io/apimachinery/pkg/types"
    	"k8s.io/kubernetes/pkg/volume"
    )
    
    type flexVolume struct {
    	// driverName is the name of the plugin driverName.
    	driverName string
    	// Driver executable used to setup the volume.
    	execPath string
    	// mounter provides the interface that is used to mount the actual
    	// block device.
    	mounter mount.Interface
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Sep 17 04:51:24 UTC 2020
    - 1.6K bytes
    - Viewed (0)
  5. pkg/volume/csi/csi_util_test.go

    	os.Exit(m.Run())
    }
    
    func makeTestPVWithMountOptions(name string, sizeGig int, driverName, volID string, mountOptions []string) *api.PersistentVolume {
    	pv := makeTestPV(name, sizeGig, driverName, volID)
    	pv.Spec.MountOptions = mountOptions
    	return pv
    }
    
    func makeTestPV(name string, sizeGig int, driverName, volID string) *api.PersistentVolume {
    	return &api.PersistentVolume{
    		ObjectMeta: meta.ObjectMeta{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 20 14:49:03 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  6. pkg/apis/resource/validation/validation_resourceclaimparameters_test.go

    				parameters.DriverRequests = []resource.DriverRequests{{DriverName: goodName}}
    				return parameters
    			}(),
    		},
    
    		"invalid-driver": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:21:16 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  7. pkg/apis/resource/types.go

    type ResourceHandle struct {
    	// 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.
    	DriverName string
    
    	// Data contains the opaque data associated with this ResourceHandle. It is
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 14 17:07:36 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  8. staging/src/k8s.io/api/testdata/HEAD/resource.k8s.io.v1alpha2.ResourceClassParameters.yaml

    apiVersion: resource.k8s.io/v1alpha2
    filters:
    - driverName: driverNameValue
      namedResources:
        selector: selectorValue
    generatedFrom:
      apiGroup: apiGroupValue
      kind: kindValue
      name: nameValue
      namespace: namespaceValue
    kind: ResourceClassParameters
    metadata:
      annotations:
        annotationsKey: annotationsValue
      creationTimestamp: "2008-01-01T01:01:01Z"
      deletionGracePeriodSeconds: 10
      deletionTimestamp: "2009-01-01T01:01:01Z"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:21:16 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  9. pkg/volume/csi/nodeinfomanager/nodeinfomanager_test.go

    					},
    				},
    			},
    		},
    		{
    			name:         "empty node ID",
    			driverName:   "com.example.csi.driver1",
    			existingNode: generateNode(nil /* nodeIDs */, nil /* labels */, nil /*capacity*/),
    			inputNodeID:  "",
    			expectFail:   true,
    		},
    		{
    			name:             "new node with valid max limit of volumes",
    			driverName:       "com.example.csi.driver1",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Dec 17 02:02:59 UTC 2022
    - 34.3K bytes
    - Viewed (0)
  10. pkg/kubelet/cm/dra/claiminfo_test.go

    					DriverName: driverName,
    					Allocation: &resourcev1alpha2.AllocationResult{
    						ResourceHandles: []resourcev1alpha2.ResourceHandle{},
    					},
    				},
    				Spec: resourcev1alpha2.ResourceClaimSpec{
    					ResourceClassName: className,
    				},
    			},
    			expectedResult: &ClaimInfo{
    				ClaimInfoState: state.ClaimInfoState{
    					DriverName: driverName,
    					ClassName:  className,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 03 13:30:31 UTC 2024
    - 21K bytes
    - Viewed (0)
Back to top