New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
plugin/kubernetes: fix reload panic #4881
Conversation
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
Codecov Report
@@ Coverage Diff @@
## master #4881 +/- ##
==========================================
- Coverage 55.70% 55.66% -0.05%
==========================================
Files 224 232 +8
Lines 10016 14398 +4382
==========================================
+ Hits 5579 8014 +2435
- Misses 3978 5887 +1909
- Partials 459 497 +38
Continue to review full report at Codecov.
|
@@ -31,7 +31,6 @@ var log = clog.NewWithPlugin(pluginName) | |||
func init() { plugin.Register(pluginName, setup) } | |||
|
|||
func setup(c *caddy.Controller) error { | |||
klog.InitFlags(nil) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LOL, (not!). How can we prevent this being added back in again?
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
I opened an issue to add a reload test to coredns/ci. |
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
Added ... without this fix ...
with this fix ...
|
* 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> Signed-off-by: jinglinax@163.com <jinglinax@163.com>
Signed-off-by: Chris O'Haver cohaver@infoblox.com
1. Why is this pull request needed and what does it do?
Avoid panic when Corefile reloads.
2. Which issues (if any) are related?
#4880
3. Which documentation changes (if any) need to be made?
4. Does this introduce a backward incompatible change or deprecation?