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:
parent
8ddb6313bb
commit
e742b5ee34
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue