blob: e95258562eb4080114d6a36c3389fc81d770fa48 [file] [log] [blame]
From 355d38f38cf241b91a862795892bcb87c5729d2e Mon Sep 17 00:00:00 2001
From: Lorenz Brun <lorenz@monogon.tech>
Date: Wed, 16 Mar 2022 13:39:39 +0100
Subject: [PATCH] Remove unused plugins
---
core/dnsserver/zdirectives.go | 7 -------
core/plugin/zplugin.go | 7 -------
plugin.cfg | 7 -------
plugin/kubernetes/setup.go | 3 ---
4 files changed, 24 deletions(-)
diff --git a/core/dnsserver/zdirectives.go b/core/dnsserver/zdirectives.go
index bca21718..678c02c6 100644
--- a/core/dnsserver/zdirectives.go
+++ b/core/dnsserver/zdirectives.go
@@ -11,7 +11,6 @@ package dnsserver
// care what plugin above them are doing.
var Directives = []string{
"metadata",
- "geoip",
"cancel",
"tls",
"reload",
@@ -20,14 +19,12 @@ var Directives = []string{
"root",
"bind",
"debug",
- "trace",
"ready",
"health",
"pprof",
"prometheus",
"errors",
"log",
- "dnstap",
"local",
"dns64",
"acl",
@@ -43,15 +40,11 @@ var Directives = []string{
"template",
"transfer",
"hosts",
- "route53",
- "azure",
- "clouddns",
"k8s_external",
"kubernetes",
"file",
"auto",
"secondary",
- "etcd",
"loop",
"forward",
"grpc",
diff --git a/core/plugin/zplugin.go b/core/plugin/zplugin.go
index a9167eea..2a5d0b13 100644
--- a/core/plugin/zplugin.go
+++ b/core/plugin/zplugin.go
@@ -9,23 +9,18 @@ import (
_ "github.com/coredns/coredns/plugin/any"
_ "github.com/coredns/coredns/plugin/auto"
_ "github.com/coredns/coredns/plugin/autopath"
- _ "github.com/coredns/coredns/plugin/azure"
_ "github.com/coredns/coredns/plugin/bind"
_ "github.com/coredns/coredns/plugin/bufsize"
_ "github.com/coredns/coredns/plugin/cache"
_ "github.com/coredns/coredns/plugin/cancel"
_ "github.com/coredns/coredns/plugin/chaos"
- _ "github.com/coredns/coredns/plugin/clouddns"
_ "github.com/coredns/coredns/plugin/debug"
_ "github.com/coredns/coredns/plugin/dns64"
_ "github.com/coredns/coredns/plugin/dnssec"
- _ "github.com/coredns/coredns/plugin/dnstap"
_ "github.com/coredns/coredns/plugin/erratic"
_ "github.com/coredns/coredns/plugin/errors"
- _ "github.com/coredns/coredns/plugin/etcd"
_ "github.com/coredns/coredns/plugin/file"
_ "github.com/coredns/coredns/plugin/forward"
- _ "github.com/coredns/coredns/plugin/geoip"
_ "github.com/coredns/coredns/plugin/grpc"
_ "github.com/coredns/coredns/plugin/header"
_ "github.com/coredns/coredns/plugin/health"
@@ -45,12 +40,10 @@ import (
_ "github.com/coredns/coredns/plugin/reload"
_ "github.com/coredns/coredns/plugin/rewrite"
_ "github.com/coredns/coredns/plugin/root"
- _ "github.com/coredns/coredns/plugin/route53"
_ "github.com/coredns/coredns/plugin/secondary"
_ "github.com/coredns/coredns/plugin/sign"
_ "github.com/coredns/coredns/plugin/template"
_ "github.com/coredns/coredns/plugin/tls"
- _ "github.com/coredns/coredns/plugin/trace"
_ "github.com/coredns/coredns/plugin/transfer"
_ "github.com/coredns/coredns/plugin/whoami"
)
diff --git a/plugin.cfg b/plugin.cfg
index 628e7141..d4ce1c89 100644
--- a/plugin.cfg
+++ b/plugin.cfg
@@ -20,7 +20,6 @@
# log:log
metadata:metadata
-geoip:geoip
cancel:cancel
tls:tls
reload:reload
@@ -29,14 +28,12 @@ bufsize:bufsize
root:root
bind:bind
debug:debug
-trace:trace
ready:ready
health:health
pprof:pprof
prometheus:metrics
errors:errors
log:log
-dnstap:dnstap
local:local
dns64:dns64
acl:acl
@@ -52,15 +49,11 @@ minimal:minimal
template:template
transfer:transfer
hosts:hosts
-route53:route53
-azure:azure
-clouddns:clouddns
k8s_external:k8s_external
kubernetes:kubernetes
file:file
auto:auto
secondary:secondary
-etcd:etcd
loop:loop
forward:forward
grpc:grpc
diff --git a/plugin/kubernetes/setup.go b/plugin/kubernetes/setup.go
index 5f5ab058..ae1a7cf8 100644
--- a/plugin/kubernetes/setup.go
+++ b/plugin/kubernetes/setup.go
@@ -17,9 +17,6 @@ import (
"github.com/miekg/dns"
meta "k8s.io/apimachinery/pkg/apis/meta/v1"
- _ "k8s.io/client-go/plugin/pkg/client/auth/gcp" // pull this in here, because we want it excluded if plugin.cfg doesn't have k8s
- _ "k8s.io/client-go/plugin/pkg/client/auth/oidc" // pull this in here, because we want it excluded if plugin.cfg doesn't have k8s
- _ "k8s.io/client-go/plugin/pkg/client/auth/openstack" // pull this in here, because we want it excluded if plugin.cfg doesn't have k8s
"k8s.io/client-go/tools/clientcmd"
"k8s.io/klog/v2"
)
--
2.25.1