Skip to content

Commit

Permalink
Fixed formating
Browse files Browse the repository at this point in the history
Signed-off-by: JoaoBraveCoding <joao.marcal12@gmail.com>
  • Loading branch information
JoaoBraveCoding committed Mar 18, 2020
1 parent 18316a8 commit 78b9a49
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions source/crd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down
6 changes: 3 additions & 3 deletions source/crd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func testCRDSourceEndpoints(t *testing.T) {
endpoints []*endpoint.Endpoint
expectEndpoints bool
expectError bool
labelFilter string
labelFilter string
labels map[string]string
}{
{
Expand Down Expand Up @@ -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"},
Expand All @@ -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"},
Expand Down

0 comments on commit 78b9a49

Please sign in to comment.