Skip to content

Fork of k/cloud-provider-gcp to build a cloud-controller-manager image using the in-tree GCE cloud provider

License

Notifications You must be signed in to change notification settings

gardener/cloud-provider-gcp

 
 

cloud-provider-gcp

REUSE status

Publishing gcp-controller-manager image

This command will build and publish gcr.io/k8s-image-staging/gcp-controller-manager:latest:

bazel run //cmd/gcp-controller-manager:publish

Environment variables IMAGE_REPO and IMAGE_TAG can be used to override destination GCR repository and tag.

This command will build and publish gcr.io/my-repo/gcp-controller-manager:v1:

IMAGE_REPO=my-repo IMAGE_TAG=v1 bazel run //cmd/gcp-controller-manager:publish

Dependency management

Dependencies are managed using Go modules (go mod subcommands).

Note that builds are done with Bazel and not the Go tool. Don't follow public Go module docs, instead use instructions in this readme.

Working within GOPATH

If you work within GOPATH, go mod will error out unless you do one of:

  • move repo outside of GOPATH (it should "just work")
  • set env var GO111MODULE=on

Add a new dependency

go get github.com/new/dependency && ./tools/update_vendor.sh

Update an existing dependency

go get -u github.com/existing/dependency && ./tools/update_vendor.sh

Update all dependencies

go get -u && ./tools/update_vendor.sh

Note that this most likely won't work due to cross-dependency issues or repos not implementing modules correctly.

Clean up unused dependencies

go mod tidy && ./tools/update_vendor.sh

About

Fork of k/cloud-provider-gcp to build a cloud-controller-manager image using the in-tree GCE cloud provider

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Starlark 51.5%
  • Go 25.4%
  • Shell 20.1%
  • Dockerfile 3.0%