mirror of
https://github.com/coredns/coredns.git
synced 2025-11-02 10:13:14 -05:00
deprecate some stuff (#1732)
https_google and reverse will be removed in 2 releases. Add warnings. We will move reverse to coredns/reverse and list it as external after this switch. See #1713
This commit is contained in:
@@ -27,6 +27,9 @@ type google struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func newGoogle(endpoint string, bootstrap []string) *google {
|
func newGoogle(endpoint string, bootstrap []string) *google {
|
||||||
|
// TODO(miek): Deprecate after 1.1.3 (that would be 1.2.0)
|
||||||
|
log.Warning("https_google will be deprecated in the next release")
|
||||||
|
|
||||||
if endpoint == "" {
|
if endpoint == "" {
|
||||||
endpoint = ghost
|
endpoint = ghost
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,10 +10,13 @@ import (
|
|||||||
"github.com/coredns/coredns/core/dnsserver"
|
"github.com/coredns/coredns/core/dnsserver"
|
||||||
"github.com/coredns/coredns/plugin"
|
"github.com/coredns/coredns/plugin"
|
||||||
"github.com/coredns/coredns/plugin/pkg/fall"
|
"github.com/coredns/coredns/plugin/pkg/fall"
|
||||||
|
clog "github.com/coredns/coredns/plugin/pkg/log"
|
||||||
|
|
||||||
"github.com/mholt/caddy"
|
"github.com/mholt/caddy"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
var log = clog.NewWithPlugin("reverse")
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
caddy.RegisterPlugin("reverse", caddy.Plugin{
|
caddy.RegisterPlugin("reverse", caddy.Plugin{
|
||||||
ServerType: "dns",
|
ServerType: "dns",
|
||||||
@@ -31,6 +34,9 @@ func setup(c *caddy.Controller) error {
|
|||||||
return Reverse{Next: next, Networks: networks, Fall: fall}
|
return Reverse{Next: next, Networks: networks, Fall: fall}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// TODO(miek): Deprecate after 1.1.3 (that would be 1.2.0)
|
||||||
|
log.Warning("reverse will be deprecated in the next release")
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user