aboutsummaryrefslogtreecommitdiff
path: root/plugin/kubernetes
diff options
context:
space:
mode:
authorGravatar Manuel Rüger <manuel@rueg.eu> 2021-08-04 05:22:36 +0200
committerGravatar GitHub <noreply@github.com> 2021-08-03 20:22:36 -0700
commit4758070425ac2f4f43c71c82ba3aca847965e394 (patch)
tree385ce8813d5d17c7504d7c00e8130050bc3e67a0 /plugin/kubernetes
parente20360c7c7db190c2fbf5535e26d3082309d7ade (diff)
downloadcoredns-4758070425ac2f4f43c71c82ba3aca847965e394.tar.gz
coredns-4758070425ac2f4f43c71c82ba3aca847965e394.tar.zst
coredns-4758070425ac2f4f43c71c82ba3aca847965e394.zip
plugins/kubernetes: Switch to klog/v2 (#4778)
Signed-off-by: Manuel Rüger <manuel@rueg.eu>
Diffstat (limited to 'plugin/kubernetes')
-rw-r--r--plugin/kubernetes/setup.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin/kubernetes/setup.go b/plugin/kubernetes/setup.go
index c85170d9b..269ba375a 100644
--- a/plugin/kubernetes/setup.go
+++ b/plugin/kubernetes/setup.go
@@ -21,7 +21,7 @@ import (
_ "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"
+ "k8s.io/klog/v2"
)
const pluginName = "kubernetes"
@@ -31,6 +31,7 @@ var log = clog.NewWithPlugin(pluginName)
func init() { plugin.Register(pluginName, setup) }
func setup(c *caddy.Controller) error {
+ klog.InitFlags(nil)
klog.SetOutput(os.Stdout)
k, err := kubernetesParse(c)