Merge pull request #80664 from thockin/document-port-names

Update docs for service/endpoints port names
This commit is contained in:
Kubernetes Prow Robot
2019-08-13 14:16:06 -07:00
committed by GitHub
4 changed files with 14 additions and 10 deletions

View File

@@ -7500,7 +7500,7 @@
"description": "EndpointPort is a tuple that describes a single port.",
"properties": {
"name": {
"description": "The name of this port (corresponds to ServicePort.Name). Must be a DNS_LABEL. Optional only if one port is defined.",
"description": "The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined.",
"type": "string"
},
"port": {
@@ -11349,7 +11349,7 @@
"description": "ServicePort contains information on service's port.",
"properties": {
"name": {
"description": "The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. This maps to the 'Name' field in EndpointPort objects. Optional if only one ServicePort is defined on this service.",
"description": "The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service.",
"type": "string"
},
"nodePort": {