mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 05:27:21 +00:00
Merge pull request #4702 from smarterclayton/always_return_endpoints
Endpoints should not be omitempty for ease of client use
This commit is contained in:
commit
dec46ad9cb
@ -608,7 +608,7 @@ type Endpoints struct {
|
|||||||
// Optional: The IP protocol for these endpoints. Supports "TCP" and
|
// Optional: The IP protocol for these endpoints. Supports "TCP" and
|
||||||
// "UDP". Defaults to "TCP".
|
// "UDP". Defaults to "TCP".
|
||||||
Protocol Protocol `json:"protocol,omitempty" description:"IP protocol for endpoint ports; must be UDP or TCP; TCP if unspecified"`
|
Protocol Protocol `json:"protocol,omitempty" description:"IP protocol for endpoint ports; must be UDP or TCP; TCP if unspecified"`
|
||||||
Endpoints []string `json:"endpoints,omitempty" description:"list of endpoints corresponding to a service, of the form address:port, such as 10.10.1.1:1909"`
|
Endpoints []string `json:"endpoints" description:"list of endpoints corresponding to a service, of the form address:port, such as 10.10.1.1:1909"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// EndpointsList is a list of endpoints.
|
// EndpointsList is a list of endpoints.
|
||||||
|
@ -572,7 +572,7 @@ type Endpoints struct {
|
|||||||
// Optional: The IP protocol for these endpoints. Supports "TCP" and
|
// Optional: The IP protocol for these endpoints. Supports "TCP" and
|
||||||
// "UDP". Defaults to "TCP".
|
// "UDP". Defaults to "TCP".
|
||||||
Protocol Protocol `json:"protocol,omitempty" description:"IP protocol for endpoint ports; must be UDP or TCP; TCP if unspecified"`
|
Protocol Protocol `json:"protocol,omitempty" description:"IP protocol for endpoint ports; must be UDP or TCP; TCP if unspecified"`
|
||||||
Endpoints []string `json:"endpoints,omitempty" description:"list of endpoints corresponding to a service, of the form address:port, such as 10.10.1.1:1909"`
|
Endpoints []string `json:"endpoints" description:"list of endpoints corresponding to a service, of the form address:port, such as 10.10.1.1:1909"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// EndpointsList is a list of endpoints.
|
// EndpointsList is a list of endpoints.
|
||||||
|
Loading…
Reference in New Issue
Block a user