From 7a3405fdedc892ec01c37b9a061b5550a4915187 Mon Sep 17 00:00:00 2001 From: Clayton Coleman Date: Sat, 21 Feb 2015 17:14:01 -0500 Subject: [PATCH] Endpoints should not be omitempty for ease of client use --- pkg/api/v1beta1/types.go | 2 +- pkg/api/v1beta2/types.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/api/v1beta1/types.go b/pkg/api/v1beta1/types.go index 929ec181dd9..5c8358a1a4e 100644 --- a/pkg/api/v1beta1/types.go +++ b/pkg/api/v1beta1/types.go @@ -608,7 +608,7 @@ type Endpoints struct { // Optional: The IP protocol for these endpoints. Supports "TCP" and // "UDP". Defaults to "TCP". 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. diff --git a/pkg/api/v1beta2/types.go b/pkg/api/v1beta2/types.go index 314aa4f9d51..94d8fb7e90e 100644 --- a/pkg/api/v1beta2/types.go +++ b/pkg/api/v1beta2/types.go @@ -572,7 +572,7 @@ type Endpoints struct { // Optional: The IP protocol for these endpoints. Supports "TCP" and // "UDP". Defaults to "TCP". 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.