mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
plugin/kubernetes: fix reload panic (#4881)
* fix reload panic Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * add comment Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * o import ordering Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
This commit is contained in:
@@ -31,7 +31,7 @@ var log = clog.NewWithPlugin(pluginName)
|
||||
func init() { plugin.Register(pluginName, setup) }
|
||||
|
||||
func setup(c *caddy.Controller) error {
|
||||
klog.InitFlags(nil)
|
||||
// Do not call klog.InitFlags(nil) here. It will cause reload to panic.
|
||||
klog.SetOutput(os.Stdout)
|
||||
|
||||
k, err := kubernetesParse(c)
|
||||
|
||||
Reference in New Issue
Block a user