Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ValidateEndpointSliceName (0.23 sec)

  1. pkg/controller/endpointslicemirroring/utils.go

    func getEndpointSlicePrefix(serviceName string) string {
    	// use the dash (if the name isn't too long) to make the name a bit prettier.
    	prefix := fmt.Sprintf("%s-", serviceName)
    	if len(validation.ValidateEndpointSliceName(prefix, true)) != 0 {
    		prefix = serviceName
    	}
    	return prefix
    }
    
    // addressToEndpoint converts an address from an Endpoints resource to an
    // EndpointSlice endpoint.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 11 18:08:12 UTC 2023
    - 8.8K bytes
    - Viewed (0)
Back to top