Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ValidateEndpointSliceName (0.29 sec)

  1. pkg/apis/discovery/validation/validation.go

    	maxPorts          = 20000
    	maxEndpoints      = 1000
    	maxZoneHints      = 8
    )
    
    // ValidateEndpointSliceName can be used to check whether the given endpoint
    // slice name is valid. Prefix indicates this name will be used as part of
    // generation, in which case trailing dashes are allowed.
    var ValidateEndpointSliceName = apimachineryvalidation.NameIsDNSSubdomain
    
    // ValidateEndpointSlice validates an EndpointSlice.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 18 08:49:15 UTC 2021
    - 7.8K bytes
    - Viewed (0)
  2. 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