Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for chainNameBaseLengthMax (0.22 sec)

  1. pkg/proxy/nftables/proxier.go

    func hashAndTruncate(name string) string {
    	hash := sha256.Sum256([]byte(name))
    	encoded := base32.StdEncoding.EncodeToString(hash[:])
    	name = encoded[:8] + "-" + name
    	if len(name) > chainNameBaseLengthMax {
    		name = name[:chainNameBaseLengthMax-3] + "..."
    	}
    	return name
    }
    
    // servicePortChainNameBase returns the base name for a chain for the given ServicePort.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 08 13:48:54 UTC 2024
    - 55.5K bytes
    - Viewed (0)
Back to top