mirror of
https://github.com/coredns/coredns.git
synced 2026-01-24 01:12:55 -05:00
Switch over to k8s notification API (#202)
* Merge notification code by @aledbf and update for recent changes. * Fix travis environment to correctly build with k8s.io and forked repositories. * Refactored kubernetes Corefile parser * Added lots of Corefile parsing tests
This commit is contained in:
18
Makefile
18
Makefile
@@ -4,13 +4,16 @@ BUILD_VERBOSE := -v
|
||||
TEST_VERBOSE :=
|
||||
TEST_VERBOSE := -v
|
||||
|
||||
DOCKER_IMAGE_NAME := $$USER/coredns
|
||||
|
||||
|
||||
all:
|
||||
go build $(BUILD_VERBOSE)
|
||||
go build $(BUILD_VERBOSE) -ldflags="-s -w"
|
||||
|
||||
.PHONY: docker
|
||||
docker:
|
||||
GOOS=linux go build -a -tags netgo -installsuffix netgo
|
||||
docker build -t $$USER/coredns .
|
||||
docker: all
|
||||
GOOS=linux go build -a -tags netgo -installsuffix netgo -ldflags="-s -w"
|
||||
docker build -t $(DOCKER_IMAGE_NAME) .
|
||||
|
||||
.PHONY: deps
|
||||
deps:
|
||||
@@ -22,8 +25,15 @@ test:
|
||||
|
||||
.PHONY: testk8s
|
||||
testk8s:
|
||||
# With -args --v=100 the k8s API response data will be printed in the log:
|
||||
#go test $(TEST_VERBOSE) -tags=k8s -run 'TestK8sIntegration' ./test -args --v=100
|
||||
# Without the k8s API response data:
|
||||
go test $(TEST_VERBOSE) -tags=k8s -run 'TestK8sIntegration' ./test
|
||||
|
||||
.PHONY: testk8s-setup
|
||||
testk8s-setup:
|
||||
go test -v ./core/setup -run TestKubernetes
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
go clean
|
||||
|
||||
Reference in New Issue
Block a user