Skip to content

Commit

Permalink
Merge pull request #2 from nicksardo/update-repo
Browse files Browse the repository at this point in the history
Update repo to be GCE specific
  • Loading branch information
nicksardo authored Oct 6, 2017
2 parents 6b80dda + 7540264 commit e72479b
Show file tree
Hide file tree
Showing 434 changed files with 787 additions and 109,096 deletions.
File renamed without changes.
File renamed without changes.
63 changes: 11 additions & 52 deletions Makefile
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
9 changes: 6 additions & 3 deletions OWNERS
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
737 changes: 716 additions & 21 deletions README.md

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions controllers/gce/backends/backends.go → backends/backends.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ import (
"k8s.io/apimachinery/pkg/util/intstr"
"k8s.io/apimachinery/pkg/util/sets"

"k8s.io/ingress/controllers/gce/healthchecks"
"k8s.io/ingress/controllers/gce/instances"
"k8s.io/ingress/controllers/gce/storage"
"k8s.io/ingress/controllers/gce/utils"
"k8s.io/ingress-gce/healthchecks"
"k8s.io/ingress-gce/instances"
"k8s.io/ingress-gce/storage"
"k8s.io/ingress-gce/utils"
)

// BalancingMode represents the loadbalancing configuration of an individual
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ import (
"k8s.io/apimachinery/pkg/util/intstr"
"k8s.io/apimachinery/pkg/util/sets"

"k8s.io/ingress/controllers/gce/healthchecks"
"k8s.io/ingress/controllers/gce/instances"
"k8s.io/ingress/controllers/gce/storage"
"k8s.io/ingress/controllers/gce/utils"
"k8s.io/ingress-gce/healthchecks"
"k8s.io/ingress-gce/instances"
"k8s.io/ingress-gce/storage"
"k8s.io/ingress-gce/utils"
)

const defaultZone = "zone-a"
Expand Down
2 changes: 1 addition & 1 deletion controllers/gce/backends/fakes.go → backends/fakes.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
api_v1 "k8s.io/api/core/v1"
"k8s.io/client-go/tools/cache"

"k8s.io/ingress/controllers/gce/utils"
"k8s.io/ingress-gce/utils"
)

// NewFakeBackendServices creates a new fake backend services manager.
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ import (
compute "google.golang.org/api/compute/v1"
gce "k8s.io/kubernetes/pkg/cloudprovider/providers/gce"

"k8s.io/ingress/controllers/gce/backends"
"k8s.io/ingress/controllers/gce/firewalls"
"k8s.io/ingress/controllers/gce/healthchecks"
"k8s.io/ingress/controllers/gce/instances"
"k8s.io/ingress/controllers/gce/loadbalancers"
"k8s.io/ingress/controllers/gce/utils"
"k8s.io/ingress-gce/backends"
"k8s.io/ingress-gce/firewalls"
"k8s.io/ingress-gce/healthchecks"
"k8s.io/ingress-gce/instances"
"k8s.io/ingress-gce/loadbalancers"
"k8s.io/ingress-gce/utils"
)

const (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import (
"k8s.io/client-go/tools/cache"
"k8s.io/client-go/tools/record"

"k8s.io/ingress/controllers/gce/loadbalancers"
"k8s.io/ingress-gce/loadbalancers"
)

var (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ import (
"k8s.io/client-go/kubernetes/fake"
"k8s.io/kubernetes/pkg/api"

"k8s.io/ingress/controllers/gce/firewalls"
"k8s.io/ingress/controllers/gce/loadbalancers"
"k8s.io/ingress/controllers/gce/utils"
"k8s.io/ingress-gce/firewalls"
"k8s.io/ingress-gce/loadbalancers"
"k8s.io/ingress-gce/utils"
)

const testClusterName = "testcluster"
Expand Down
File renamed without changes.
12 changes: 6 additions & 6 deletions controllers/gce/controller/fakes.go → controller/fakes.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ import (
"k8s.io/apimachinery/pkg/util/intstr"
"k8s.io/apimachinery/pkg/util/sets"

"k8s.io/ingress/controllers/gce/backends"
"k8s.io/ingress/controllers/gce/firewalls"
"k8s.io/ingress/controllers/gce/healthchecks"
"k8s.io/ingress/controllers/gce/instances"
"k8s.io/ingress/controllers/gce/loadbalancers"
"k8s.io/ingress/controllers/gce/utils"
"k8s.io/ingress-gce/backends"
"k8s.io/ingress-gce/firewalls"
"k8s.io/ingress-gce/healthchecks"
"k8s.io/ingress-gce/instances"
"k8s.io/ingress-gce/loadbalancers"
"k8s.io/ingress-gce/utils"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion controllers/gce/controller/tls.go → controller/tls.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes"

"k8s.io/ingress/controllers/gce/loadbalancers"
"k8s.io/ingress-gce/loadbalancers"
)

// secretLoaders returns a type containing all the secrets of an Ingress.
Expand Down
6 changes: 3 additions & 3 deletions controllers/gce/controller/utils.go → controller/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ import (
"k8s.io/client-go/tools/cache"
"k8s.io/client-go/util/workqueue"

"k8s.io/ingress/controllers/gce/backends"
"k8s.io/ingress/controllers/gce/loadbalancers"
"k8s.io/ingress/controllers/gce/utils"
"k8s.io/ingress-gce/backends"
"k8s.io/ingress-gce/loadbalancers"
"k8s.io/ingress-gce/utils"
)

const (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import (
meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/intstr"
"k8s.io/apimachinery/pkg/util/sets"
"k8s.io/ingress/controllers/gce/backends"
"k8s.io/ingress/controllers/gce/utils"
"k8s.io/ingress-gce/backends"
"k8s.io/ingress-gce/utils"
)

// Pods created in loops start from this time, for routines that
Expand Down
11 changes: 0 additions & 11 deletions controllers/README.md

This file was deleted.

1 change: 0 additions & 1 deletion controllers/gce/.gitignore

This file was deleted.

17 changes: 0 additions & 17 deletions controllers/gce/Makefile

This file was deleted.

6 changes: 0 additions & 6 deletions controllers/gce/OWNERS

This file was deleted.

Loading

0 comments on commit e72479b

Please sign in to comment.