diff --git a/source/crd.go b/source/crd.go index 641819a6c5..dfa6fb3ba3 100644 --- a/source/crd.go +++ b/source/crd.go @@ -119,8 +119,8 @@ func (cs *crdSource) Endpoints() ([]*endpoint.Endpoint, error) { endpoints := []*endpoint.Endpoint{} var ( - result *endpoint.DNSEndpointList - err error + result *endpoint.DNSEndpointList + err error ) if cs.labelFilter != "" { result, err = cs.List(&metav1.ListOptions{LabelSelector: cs.labelFilter}) diff --git a/source/crd_test.go b/source/crd_test.go index bed1039d20..2c557e91ca 100644 --- a/source/crd_test.go +++ b/source/crd_test.go @@ -137,7 +137,7 @@ func testCRDSourceEndpoints(t *testing.T) { endpoints []*endpoint.Endpoint expectEndpoints bool expectError bool - labelFilter string + labelFilter string labels map[string]string }{ { @@ -276,7 +276,7 @@ func testCRDSourceEndpoints(t *testing.T) { namespace: "foo", registeredNamespace: "foo", labels: map[string]string{"test": "that"}, - labelFilter: "test=filter_something_else", + labelFilter: "test=filter_something_else", endpoints: []*endpoint.Endpoint{ {DNSName: "abc.example.org", Targets: endpoint.Targets{"1.2.3.4"}, @@ -296,7 +296,7 @@ func testCRDSourceEndpoints(t *testing.T) { namespace: "foo", registeredNamespace: "foo", labels: map[string]string{"test": "that"}, - labelFilter: "test=that", + labelFilter: "test=that", endpoints: []*endpoint.Endpoint{ {DNSName: "abc.example.org", Targets: endpoint.Targets{"1.2.3.4"},