mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-31 10:13:14 -04:00 
			
		
		
		
	This reverts commit 68f1dd5ddf.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
			
			
This commit is contained in:
		| @@ -14,6 +14,7 @@ import ( | ||||
| 	"github.com/coredns/coredns/plugin/metrics" | ||||
| 	"github.com/coredns/coredns/plugin/pkg/dnsutil" | ||||
| 	clog "github.com/coredns/coredns/plugin/pkg/log" | ||||
| 	"github.com/coredns/coredns/plugin/pkg/parse" | ||||
| 	"github.com/coredns/coredns/plugin/pkg/upstream" | ||||
|  | ||||
| 	"github.com/caddyserver/caddy" | ||||
| @@ -240,6 +241,15 @@ func ParseStanza(c *caddy.Controller) (*Kubernetes, error) { | ||||
| 				return nil, c.Errf("ttl must be in range [0, 3600]: %d", t) | ||||
| 			} | ||||
| 			k8s.ttl = uint32(t) | ||||
| 		case "transfer": | ||||
| 			tos, froms, err := parse.Transfer(c, false) | ||||
| 			if err != nil { | ||||
| 				return nil, err | ||||
| 			} | ||||
| 			if len(froms) != 0 { | ||||
| 				return nil, c.Errf("transfer from is not supported with this plugin") | ||||
| 			} | ||||
| 			k8s.TransferTo = tos | ||||
| 		case "noendpoints": | ||||
| 			if len(c.RemainingArgs()) != 0 { | ||||
| 				return nil, c.ArgErr() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user