mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
plugins/kubernetes: Switch to klog/v2 (#4778)
Signed-off-by: Manuel Rüger <manuel@rueg.eu>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user