-
Notifications
You must be signed in to change notification settings - Fork 303
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from nicksardo/update-repo
Update repo to be GCE specific
- Loading branch information
Showing
434 changed files
with
787 additions
and
109,096 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,17 @@ | ||
all: fmt lint vet | ||
all: push | ||
|
||
BUILDTAGS= | ||
# 0.0 shouldn't clobber any released builds | ||
TAG = 0.9.6 | ||
PREFIX = gcr.io/google_containers/glbc | ||
|
||
# base package. It contains the common and backends code | ||
PKG := "k8s.io/ingress" | ||
server: | ||
CGO_ENABLED=0 GOOS=linux godep go build -a -installsuffix cgo -ldflags '-w' -o glbc *.go | ||
|
||
GO_LIST_FILES=$(shell go list ${PKG}/... | grep -v vendor | grep -v -e "test/e2e") | ||
container: server | ||
docker build --pull -t $(PREFIX):$(TAG) . | ||
|
||
.PHONY: fmt | ||
fmt: | ||
@go list -f '{{if len .TestGoFiles}}"gofmt -s -l {{.Dir}}"{{end}}' ${GO_LIST_FILES} | xargs -L 1 sh -c | ||
push: container | ||
gcloud docker -- push $(PREFIX):$(TAG) | ||
|
||
.PHONY: lint | ||
lint: | ||
@go list -f '{{if len .TestGoFiles}}"golint -min_confidence=0.85 {{.Dir}}/..."{{end}}' ${GO_LIST_FILES} | xargs -L 1 sh -c | ||
|
||
.PHONY: test | ||
test: | ||
@go test -v -race -tags "$(BUILDTAGS) cgo" ${GO_LIST_FILES} | ||
|
||
.PHONY: test-e2e | ||
test-e2e: ginkgo | ||
@go run hack/e2e.go -v --up --test --down | ||
|
||
.PHONY: cover | ||
cover: | ||
@go list -f '{{if len .TestGoFiles}}"go test -coverprofile={{.Dir}}/.coverprofile {{.ImportPath}}"{{end}}' ${GO_LIST_FILES} | xargs -L 1 sh -c | ||
gover | ||
goveralls -coverprofile=gover.coverprofile -service travis-ci | ||
|
||
.PHONY: vet | ||
vet: | ||
@go vet ${GO_LIST_FILES} | ||
|
||
.PHONY: clean | ||
clean: | ||
make -C controllers/nginx clean | ||
|
||
.PHONY: controllers | ||
controllers: | ||
make -C controllers/nginx build | ||
|
||
.PHONY: docker-build | ||
docker-build: | ||
make -C controllers/nginx all-container | ||
|
||
.PHONY: docker-push | ||
docker-push: | ||
make -C controllers/nginx all-push | ||
|
||
.PHONE: release | ||
release: | ||
make -C controllers/nginx release | ||
|
||
.PHONY: ginkgo | ||
ginkgo: | ||
go get github.com/onsi/ginkgo/ginkgo | ||
rm -f glbc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
assignees: | ||
- aledbf | ||
- justinsb | ||
- bprashanth | ||
- thockin | ||
- bowei | ||
- nicksardo | ||
- freehan | ||
- mrhohn | ||
- dnardo | ||
- csbell | ||
- nikhiljindal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.