Merge pull request #84481 from robscott/endpointslice-port-validation

Fixing EndpointSlice port validation
This commit is contained in:
Kubernetes Prow Robot
2019-10-30 21:55:37 -07:00
committed by GitHub
7 changed files with 43 additions and 23 deletions

View File

@@ -12071,7 +12071,7 @@
"description": "EndpointPort represents a Port used by an EndpointSlice",
"properties": {
"name": {
"description": "The name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is dervied from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass IANA_SVC_NAME validation: * must be no more than 15 characters long * may contain only [-a-z0-9] * must contain at least one letter [a-z] * it must not start or end with a hyphen, nor contain adjacent hyphens Default is empty string.",
"description": "The name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is dervied from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string.",
"type": "string"
},
"port": {