Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove bazel deps. #445

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
22 changes: 0 additions & 22 deletions .bazelrc

This file was deleted.

1 change: 0 additions & 1 deletion .bazelversion

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
bazel-*
cluster/bin
MERGED_LICENSES
output
_tmp
19 changes: 0 additions & 19 deletions BUILD

This file was deleted.

3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ARG name
FROM gcr.io/distroless/static@sha256:c6d5981545ce1406d33e61434c61e9452dad93ecd8397c41e89036ef977a88f4
COPY $name ./$name
33 changes: 33 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
BINARY_NAME ?= gcp-controller-manager
IMAGE_REPO ?= gcr.io/gke-dev
TAG ?= latest
BINARY_OS ?= linux
BINARY_ARCH ?= amd64

.PHONY: build
build:
CGO_ENABLED=0 GOOS=$(BINARY_OS) GOARCH=$(BINARY_ARCH) go build -o ./output/$(BINARY_ARCH)/$(BINARY_OS)/$(BINARY_NAME) ./cmd/$(BINARY_NAME)/

.PHONY: clean
clean:
rm -rf ./output

.PHONY: build-image
build-image: build
docker build --no-cache -t $(IMAGE_REPO)/$(BINARY_NAME):$(TAG) \
--build-arg name=$(BINARY_NAME) \
-f ./Dockerfile \
./output/$(BINARY_ARCH)/$(BINARY_OS)

.PHONY: push-image
push-image: build-image
docker push $(IMAGE_REPO)/$(BINARY_NAME):$(TAG)

.PHONY: test
test:
go test ./...

.PHONY: deps
deps:
go mod tidy
go mod vendor
110 changes: 0 additions & 110 deletions WORKSPACE

This file was deleted.

Empty file removed defs/BUILD
Empty file.
54 changes: 0 additions & 54 deletions defs/container.bzl

This file was deleted.

40 changes: 0 additions & 40 deletions defs/repo_rules.bzl

This file was deleted.

39 changes: 0 additions & 39 deletions defs/version.bzl

This file was deleted.

3 changes: 0 additions & 3 deletions tools/update_vendor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,3 @@ go mod tidy
# This lets other packages and tools use the local staging components as if they were vendored.
rm -fr "${KUBE_ROOT}/vendor/k8s.io/cloud-provider-gcp/providers"
ln -s "../../../providers" "${KUBE_ROOT}/vendor/k8s.io/cloud-provider-gcp/providers"

# restore BUILD files in vendor/
bazel run //:gazelle
9 changes: 0 additions & 9 deletions vendor/cloud.google.com/go/compute/metadata/BUILD

This file was deleted.

24 changes: 0 additions & 24 deletions vendor/github.com/Azure/go-ansiterm/BUILD

This file was deleted.

Loading