{"id":14975789,"url":"https://github.com/kubernetes/cloud-provider-gcp","last_synced_at":"2025-04-04T18:07:53.792Z","repository":{"id":37445246,"uuid":"126136847","full_name":"kubernetes/cloud-provider-gcp","owner":"kubernetes","description":"cloud-provider-gcp contains several projects used to run Kubernetes in Google Cloud","archived":false,"fork":false,"pushed_at":"2024-10-28T07:58:25.000Z","size":165025,"stargazers_count":125,"open_issues_count":27,"forks_count":209,"subscribers_count":31,"default_branch":"master","last_synced_at":"2024-10-29T14:57:52.697Z","etag":null,"topics":["cloud-providers","google","google-cloud"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kubernetes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"code-of-conduct.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY_CONTACTS","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-21T07:01:09.000Z","updated_at":"2024-10-21T18:18:59.000Z","dependencies_parsed_at":"2023-10-17T05:06:28.324Z","dependency_job_id":"6b3a3726-eef2-49f7-9f6f-0d8f41deca3e","html_url":"https://github.com/kubernetes/cloud-provider-gcp","commit_stats":{"total_commits":1272,"total_committers":197,"mean_commits":6.456852791878172,"dds":0.9182389937106918,"last_synced_commit":"8929defaa3f0403684fd6d74d60c4506a0e0bc94"},"previous_names":[],"tags_count":48,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kubernetes%2Fcloud-provider-gcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kubernetes%2Fcloud-provider-gcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kubernetes%2Fcloud-provider-gcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kubernetes%2Fcloud-provider-gcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kubernetes","download_url":"https://codeload.github.com/kubernetes/cloud-provider-gcp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247226213,"owners_count":20904465,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloud-providers","google","google-cloud"],"created_at":"2024-09-24T13:52:34.640Z","updated_at":"2025-04-04T18:07:53.775Z","avatar_url":"https://github.com/kubernetes.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cloud-provider-gcp\n\n## Publishing cloud-controller-manager image\n\nThis command will build and publish cloud-controller-manager\n`registry.k8s.io/k8s-image-staging/cloud-controller-manager:latest`:\n\n```\nbazel run //cmd/cloud-controller-manager:publish\n```\n\nEnvironment variables `IMAGE_REGISTRY`, `IMAGE_REPO` and `IMAGE_TAG` can be\nused to override destination GCR repository and tag.\n\nThis command will build and publish\n`example.com/my-repo/cloud-controller-manager:v1`:\n\n\n```\nIMAGE_REGISTRY=example.com IMAGE_REPO=my-repo IMAGE_TAG=v1 bazel run //cmd/cloud-controller-manager:publish\n```\n\nAlternatively, you can run [push-images tool](https://github.com/kubernetes/cloud-provider-gcp/blob/master/tools/push-images). The tool is built from [ko](https://github.com/ko-build/ko) that does not depend on bazel, for example this command pushes image to Google Artifact Registry under project `my-project` and existing repository `my-repo`:\n\n```\nIMAGE_REPO=us-central1-docker.pkg.dev/my-project/my-repo IMAGE_TAG=v0 ./tools/push-images\n```\n\n# Cross-compiling\n\nSelecting the target platform is done with the `--platforms` option with `bazel`.\nThis command builds release tarballs for Windows:\n\n```\nbazel build --platforms=@io_bazel_rules_go//go/toolchain:windows_amd64 //release:release-tars\n```\n\nThis command explicitly targets Linux as the target platform:\n\n```\nbazel build --platforms=@io_bazel_rules_go//go/toolchain:linux_amd64 //release:release-tars\n```\n\n\n# Dependency management\n\nDependencies are managed using [Go modules](https://github.com/golang/go/wiki/Modules) (`go mod` subcommands).\n\nNote that builds are done with Bazel and not the Go tool. Don't follow public\nGo module docs, instead use instructions in this readme.\n\n## Working within GOPATH\n\nIf you work within `GOPATH`, `go mod` will error out unless you do one of:\n\n- move repo outside of GOPATH (it should \"just work\")\n- set env var `GO111MODULE=on`\n\n## Add a new dependency\n\n```\ngo get github.com/new/dependency \u0026\u0026 ./tools/update_vendor.sh\n```\n\n## Update an existing dependency\n\n```\ngo get -u github.com/existing/dependency \u0026\u0026 ./tools/update_vendor.sh\n```\n\n## Update all dependencies\n\n```\ngo get -u \u0026\u0026 ./tools/update_vendor.sh\n```\n\nNote that this most likely won't work due to cross-dependency issues or repos\nnot implementing modules correctly.\n\n# Bazel\n\nBazel is required to build and release cloud-provider-gcp.\n\nTo install:\n\n```sh\ngo get github.com/bazelbuild/bazelisk\nalias bazel=bazelisk\n```\n\nTo re-generate `BUILD` files:\n\n```sh\ntools/update_bazel.sh\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkubernetes%2Fcloud-provider-gcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkubernetes%2Fcloud-provider-gcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkubernetes%2Fcloud-provider-gcp/lists"}