kubernetes/migration: Remove all deps (#178)

* remove diff and deps

* remove caddy deps, copy stuff locally
This commit is contained in:
Chris O'Haver 2019-05-30 17:58:30 -04:00 committed by GitHub
parent fd33b6aa56
commit d9e12ec6f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 463 additions and 93 deletions

View file

@ -1,8 +1,9 @@
package corefile
import (
"github.com/mholt/caddy"
"strings"
"github.com/coredns/deployment/kubernetes/migration/caddy"
)
type Corefile struct {
@ -27,7 +28,7 @@ type Option struct {
func New(s string) (*Corefile, error) {
c := Corefile{}
cc := caddy.NewTestController("migration", s)
cc := caddy.NewDispenser("migration", strings.NewReader(s))
depth := 0
var cSvr *Server
var cPlg *Plugin