diff options
author | 2017-08-10 21:31:36 +0100 | |
---|---|---|
committer | 2017-08-10 21:31:36 +0100 | |
commit | ea77f2a2caea7973615c93b787f98e67ec6f31a3 (patch) | |
tree | 8b8579b2b85e50778549c8b832e9bd91916bbe0b /middleware/kubernetes/handler.go | |
parent | 10681c6bf0b73bffa039aff45a80982d045ba095 (diff) | |
download | coredns-ea77f2a2caea7973615c93b787f98e67ec6f31a3.tar.gz coredns-ea77f2a2caea7973615c93b787f98e67ec6f31a3.tar.zst coredns-ea77f2a2caea7973615c93b787f98e67ec6f31a3.zip |
core: replace GetMiddleware (#885)
* core: replace GetMiddleware
See the discussion in #881. GetMiddleware would add a `nil` middleware
to the callstack thereby breaking functionality.
This PR drops it in favor of RegisterHandler which is a completely
standalone registry for middleware that want to let it self know to
other middleware.
Currenly *autopath* uses this to call *kubernetes*'s AutoPath method
for dynamic autopathing.
* Drop GetMiddleware
* Register metrics
* drop the panic
Diffstat (limited to 'middleware/kubernetes/handler.go')
0 files changed, 0 insertions, 0 deletions