mirror of
https://github.com/coredns/coredns.git
synced 2026-01-19 07:11:18 -05:00
Remove the word middleware (#1067)
* Rename middleware to plugin first pass; mostly used 'sed', few spots where I manually changed text. This still builds a coredns binary. * fmt error * Rename AddMiddleware to AddPlugin * Readd AddMiddleware to remain backwards compat
This commit is contained in:
12
Makefile
12
Makefile
@@ -11,15 +11,15 @@ coredns: check godeps
|
||||
CGO_ENABLED=0 $(SYSTEM) go build -v -ldflags="-s -w -X github.com/coredns/coredns/coremain.gitCommit=$(GITCOMMIT)" -o $(BINARY)
|
||||
|
||||
.PHONY: check
|
||||
check: fmt core/zmiddleware.go core/dnsserver/zdirectives.go godeps
|
||||
check: fmt core/zplugin.go core/dnsserver/zdirectives.go godeps
|
||||
|
||||
.PHONY: test
|
||||
test: check
|
||||
go test -race -v ./test ./middleware/...
|
||||
go test -race -v ./test ./plugin/...
|
||||
|
||||
.PHONY: testk8s
|
||||
testk8s: check
|
||||
go test -race -v -tags=k8s -run 'TestKubernetes' ./test ./middleware/kubernetes/...
|
||||
go test -race -v -tags=k8s -run 'TestKubernetes' ./test ./plugin/kubernetes/...
|
||||
|
||||
.PHONY: godeps
|
||||
godeps:
|
||||
@@ -38,8 +38,8 @@ endif
|
||||
ifeq ($(TEST_TYPE),integration)
|
||||
( cd test ; go test -v -tags 'etcd k8s' -race ./... )
|
||||
endif
|
||||
ifeq ($(TEST_TYPE),middleware)
|
||||
( cd middleware ; go test -v -tags 'etcd k8s' -race ./... )
|
||||
ifeq ($(TEST_TYPE),plugin)
|
||||
( cd plugin ; go test -v -tags 'etcd k8s' -race ./... )
|
||||
endif
|
||||
ifeq ($(TEST_TYPE),coverage)
|
||||
for d in `go list ./... | grep -v vendor`; do \
|
||||
@@ -55,7 +55,7 @@ ifeq ($(TEST_TYPE),coverage)
|
||||
endif
|
||||
|
||||
|
||||
core/zmiddleware.go core/dnsserver/zdirectives.go: middleware.cfg
|
||||
core/zplugin.go core/dnsserver/zdirectives.go: plugin.cfg
|
||||
go generate coredns.go
|
||||
|
||||
.PHONY: gen
|
||||
|
||||
Reference in New Issue
Block a user