plugins/kubernetes: Switch to klog/v2 (#4778)

Signed-off-by: Manuel Rüger <manuel@rueg.eu>
This commit is contained in:
Manuel Rüger
2021-08-04 05:22:36 +02:00
committed by GitHub
parent e20360c7c7
commit 4758070425
3 changed files with 5 additions and 5 deletions

View File

@@ -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)