aboutsummaryrefslogtreecommitdiff
path: root/plugin/k8s_external
diff options
context:
space:
mode:
authorGravatar Ondřej Benkovský <ondrej.benkovsky@jamf.com> 2022-07-10 20:06:33 +0200
committerGravatar GitHub <noreply@github.com> 2022-07-10 11:06:33 -0700
commitc2dbb7141a7c95aa521a41b27bed3af25de8f546 (patch)
tree3af5d63a0dccaa769507e34a32b6378ccef880c4 /plugin/k8s_external
parentabc5ac8017b0f434b5845321fb1f405ded7774d4 (diff)
downloadcoredns-c2dbb7141a7c95aa521a41b27bed3af25de8f546.tar.gz
coredns-c2dbb7141a7c95aa521a41b27bed3af25de8f546.tar.zst
coredns-c2dbb7141a7c95aa521a41b27bed3af25de8f546.zip
add golangci-lint linter (#5499)
Diffstat (limited to 'plugin/k8s_external')
-rw-r--r--plugin/k8s_external/msg_to_dns.go3
-rw-r--r--plugin/k8s_external/transfer_test.go2
2 files changed, 0 insertions, 5 deletions
diff --git a/plugin/k8s_external/msg_to_dns.go b/plugin/k8s_external/msg_to_dns.go
index db859cf70..6975718b9 100644
--- a/plugin/k8s_external/msg_to_dns.go
+++ b/plugin/k8s_external/msg_to_dns.go
@@ -15,7 +15,6 @@ func (e *External) a(ctx context.Context, services []msg.Service, state request.
dup := make(map[string]struct{})
for _, s := range services {
-
what, ip := s.HostType()
switch what {
@@ -48,7 +47,6 @@ func (e *External) aaaa(ctx context.Context, services []msg.Service, state reque
dup := make(map[string]struct{})
for _, s := range services {
-
what, ip := s.HostType()
switch what {
@@ -127,7 +125,6 @@ func (e *External) srv(ctx context.Context, services []msg.Service, state reques
what, ip := s.HostType()
switch what {
-
case dns.TypeCNAME:
addr := dns.Fqdn(s.Host)
srv := s.NewSRV(state.QName(), weight)
diff --git a/plugin/k8s_external/transfer_test.go b/plugin/k8s_external/transfer_test.go
index 62d48be8a..7e90803f3 100644
--- a/plugin/k8s_external/transfer_test.go
+++ b/plugin/k8s_external/transfer_test.go
@@ -83,7 +83,6 @@ func TestTransferAXFR(t *testing.T) {
t.Errorf("%+v", rec)
}
}
-
}
func TestTransferIXFR(t *testing.T) {
@@ -127,7 +126,6 @@ func TestTransferIXFR(t *testing.T) {
t.Errorf("%+v", rec)
}
}
-
}
// difference shows what we're missing when comparing two RR slices