Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for totalkeyLength (0.1 sec)

  1. 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))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 10 17:25:30 UTC 2022
    - 2.7K bytes
    - Viewed (0)
Back to top