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

Bug 2087042: Merge https://github.com/kubernetes/cloud-provider-gcp:master into master #13

Merged
merged 54 commits into from Jun 23, 2022

Conversation

cloud-team-rebase-bot[bot]
Copy link

No description provided.

@openshift-ci openshift-ci bot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Jan 27, 2022
@openshift-ci
Copy link

openshift-ci bot commented Jan 27, 2022

Hi @cloud-team-rebase-bot[bot]. Thanks for your PR.

I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

k8s-ci-robot and others added 8 commits February 8, 2022 13:58
Also:
* some random cleanup to make the code a bit more go idiomatic.
* let gcloud stderr go to stderr. it's forwarded from the parent.
* don't spit out stdout from gcloud when we error because it could
  contain secrets.
add support for authorization tokens to gke-gcloud-auth-plugin
Remove unused code path in cluster/gce/util.sh
KiranOpenSource and others added 4 commits February 14, 2022 07:21
Add logic to allow gke-gcloud-auth-plugin to
cache gcloud credentials in the gke-gcloud-auth-plugin-token
file which will be colocated in the same directory as the
kubeconfig file.
The caching logic utilizes clientcmd("k8s.io/client-go/tools/clientcmd")
library provided methods in client-go to location .kube directory.
jprzychodzen and others added 4 commits March 10, 2022 22:15
…ewer

Add jprzychodzen to OWNERS as reviewer
This change removes the logic where we merge the taints and reapply as a
part of the node annotator. The reason to remove this is because we do
not want the taints that were removed by the users to get reapplied when
the controller restarts. We still apply the last applied taints
annotation because the cluster autoscaler relies on it.
Remove taints re-application from node annotator
Fedosin and others added 13 commits June 21, 2022 16:20
We need to compile the whole module instead of a single file to
make GCP CCM work.
…m rebase

# Conflicts:
#	vendor/github.com/google/go-tpm/tpmutil/BUILD

# Conflicts:
#	vendor/github.com/googleapis/gax-go/v2/BUILD
#	vendor/golang.org/x/oauth2/google/BUILD
#	vendor/golang.org/x/oauth2/google/internal/externalaccount/BUILD
#	vendor/golang.org/x/sys/unix/BUILD
#	vendor/golang.org/x/sys/windows/BUILD
#	vendor/google.golang.org/api/internal/gensupport/BUILD
#	vendor/google.golang.org/api/option/internaloption/BUILD
#	vendor/google.golang.org/protobuf/types/descriptorpb/BUILD

# Conflicts:
#	vendor/github.com/modern-go/reflect2/BUILD
#	vendor/golang.org/x/net/idna/BUILD
#	vendor/golang.org/x/term/BUILD
#	vendor/k8s.io/apimachinery/pkg/runtime/serializer/json/BUILD
#	vendor/k8s.io/apimachinery/pkg/util/cache/BUILD
#	vendor/k8s.io/apimachinery/pkg/util/json/BUILD
#	vendor/k8s.io/apimachinery/pkg/util/managedfields/BUILD
#	vendor/k8s.io/apimachinery/pkg/util/net/BUILD
#	vendor/k8s.io/apimachinery/pkg/util/validation/BUILD
#	vendor/k8s.io/apimachinery/pkg/util/wait/BUILD
#	vendor/k8s.io/apiserver/pkg/admission/plugin/namespace/lifecycle/BUILD
#	vendor/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/BUILD
#	vendor/k8s.io/apiserver/pkg/admission/plugin/webhook/validating/BUILD
#	vendor/k8s.io/apiserver/pkg/apis/apiserver/v1alpha1/BUILD
#	vendor/k8s.io/apiserver/pkg/apis/apiserver/v1beta1/BUILD
#	vendor/k8s.io/apiserver/pkg/apis/flowcontrol/bootstrap/BUILD
#	vendor/k8s.io/apiserver/pkg/audit/BUILD
#	vendor/k8s.io/apiserver/pkg/authentication/token/cache/BUILD
#	vendor/k8s.io/apiserver/pkg/endpoints/filterlatency/BUILD
#	vendor/k8s.io/apiserver/pkg/endpoints/filters/BUILD
#	vendor/k8s.io/apiserver/pkg/endpoints/handlers/BUILD
#	vendor/k8s.io/apiserver/pkg/endpoints/handlers/fieldmanager/BUILD
#	vendor/k8s.io/apiserver/pkg/endpoints/handlers/fieldmanager/internal/BUILD
#	vendor/k8s.io/apiserver/pkg/endpoints/metrics/BUILD
#	vendor/k8s.io/apiserver/pkg/endpoints/request/BUILD
#	vendor/k8s.io/apiserver/pkg/endpoints/responsewriter/BUILD
#	vendor/k8s.io/apiserver/pkg/registry/generic/BUILD
#	vendor/k8s.io/apiserver/pkg/registry/generic/registry/BUILD
#	vendor/k8s.io/apiserver/pkg/server/BUILD
#	vendor/k8s.io/apiserver/pkg/server/dynamiccertificates/BUILD
#	vendor/k8s.io/apiserver/pkg/server/egressselector/metrics/BUILD
#	vendor/k8s.io/apiserver/pkg/server/filters/BUILD
#	vendor/k8s.io/apiserver/pkg/server/healthz/BUILD
#	vendor/k8s.io/apiserver/pkg/server/httplog/BUILD
#	vendor/k8s.io/apiserver/pkg/server/options/BUILD
#	vendor/k8s.io/apiserver/pkg/server/routes/BUILD
#	vendor/k8s.io/apiserver/pkg/storage/cacher/BUILD
#	vendor/k8s.io/apiserver/pkg/storage/etcd3/BUILD
#	vendor/k8s.io/apiserver/pkg/storage/storagebackend/BUILD
#	vendor/k8s.io/apiserver/pkg/util/apihelpers/BUILD
#	vendor/k8s.io/apiserver/pkg/util/flowcontrol/BUILD
#	vendor/k8s.io/apiserver/pkg/util/flowcontrol/debug/BUILD
#	vendor/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/BUILD
#	vendor/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/promise/BUILD
#	vendor/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/queueset/BUILD
#	vendor/k8s.io/apiserver/pkg/util/flowcontrol/format/BUILD
#	vendor/k8s.io/apiserver/pkg/util/flowcontrol/metrics/BUILD
#	vendor/k8s.io/apiserver/pkg/util/flowcontrol/request/BUILD
#	vendor/k8s.io/apiserver/pkg/util/openapi/BUILD
#	vendor/k8s.io/client-go/applyconfigurations/apps/v1/BUILD
#	vendor/k8s.io/client-go/applyconfigurations/apps/v1beta1/BUILD
#	vendor/k8s.io/client-go/applyconfigurations/apps/v1beta2/BUILD
#	vendor/k8s.io/client-go/applyconfigurations/core/v1/BUILD
#	vendor/k8s.io/client-go/applyconfigurations/meta/v1/BUILD
#	vendor/k8s.io/client-go/discovery/fake/BUILD
#	vendor/k8s.io/client-go/informers/BUILD
#	vendor/k8s.io/client-go/informers/autoscaling/BUILD
#	vendor/k8s.io/client-go/informers/flowcontrol/BUILD
#	vendor/k8s.io/client-go/kubernetes/BUILD
#	vendor/k8s.io/client-go/kubernetes/fake/BUILD
#	vendor/k8s.io/client-go/kubernetes/scheme/BUILD
#	vendor/k8s.io/client-go/plugin/pkg/client/auth/exec/BUILD
#	vendor/k8s.io/client-go/rest/BUILD
#	vendor/k8s.io/client-go/tools/cache/BUILD
#	vendor/k8s.io/client-go/tools/events/BUILD
#	vendor/k8s.io/client-go/tools/leaderelection/BUILD
#	vendor/k8s.io/client-go/tools/record/BUILD
#	vendor/k8s.io/client-go/util/cert/BUILD
#	vendor/k8s.io/client-go/util/flowcontrol/BUILD
#	vendor/k8s.io/client-go/util/workqueue/BUILD
#	vendor/k8s.io/cloud-provider/app/BUILD
#	vendor/k8s.io/cloud-provider/controllers/node/BUILD
#	vendor/k8s.io/cloud-provider/controllers/nodelifecycle/BUILD
#	vendor/k8s.io/cloud-provider/controllers/route/BUILD
#	vendor/k8s.io/cloud-provider/node/helpers/BUILD
#	vendor/k8s.io/cloud-provider/options/BUILD
#	vendor/k8s.io/component-base/cli/flag/BUILD
#	vendor/k8s.io/component-base/cli/globalflag/BUILD
#	vendor/k8s.io/component-base/config/BUILD
#	vendor/k8s.io/component-base/config/v1alpha1/BUILD
#	vendor/k8s.io/component-base/logs/BUILD
#	vendor/k8s.io/controller-manager/app/BUILD
#	vendor/k8s.io/controller-manager/pkg/clientbuilder/BUILD
#	vendor/k8s.io/kube-openapi/pkg/handler/BUILD
#	vendor/k8s.io/kubernetes/pkg/controller/BUILD
#	vendor/k8s.io/kubernetes/pkg/util/taints/BUILD
…m rebase

# Conflicts:
#	vendor/golang.org/x/tools/internal/typeparams/BUILD
#	vendor/k8s.io/code-generator/cmd/client-gen/BUILD
#	vendor/k8s.io/code-generator/cmd/deepcopy-gen/BUILD
#	vendor/k8s.io/code-generator/cmd/informer-gen/BUILD
#	vendor/k8s.io/code-generator/cmd/lister-gen/BUILD
#	vendor/k8s.io/code-generator/cmd/register-gen/BUILD
#	vendor/k8s.io/code-generator/pkg/util/BUILD
Ran:
go mod tidy && ./tools/update_vendor.sh && ./tools/update_bazel.sh
Based on docs for internal loadbalancer here [1], backend services [2]
and instances in instance-groups [3], following restrictions apply:

- Internal LB can load balance to VMs in same region, but different
  subnets
- Instance groups for the backend service must contain instance of
  the same subnet
- An instance can only belong to one load balanced instance group
- It is probably useful use-case to have nodes for the cluster belong
  to more than one subnet. And the current setup fails to create an
  internal load balancer with nodes in multiple subnets.

This change finds pre-existing instance-groups that ONLY contain
instances that belong to the cluster, uses them for the backend
service. And only ensures instance-groups for remaining ones.

[1] https://cloud.google.com/load-balancing/docs/internal
[2] https://cloud.google.com/load-balancing/docs/backend-service#restrictions_and_guidance
[3] https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-unmanaged-instances#addinstances

Co-authored-by: Abhinav Dahiya <abhinav.dahiya@redhat.com>
@Fedosin
Copy link

Fedosin commented Jun 22, 2022

/retest

@Fedosin
Copy link

Fedosin commented Jun 22, 2022

/retitle Bug 2087042: Merge https://github.com/kubernetes/cloud-provider-gcp:master into master

@openshift-ci openshift-ci bot changed the title Merge https://github.com/kubernetes/cloud-provider-gcp:master into master Bug 2087042: Merge https://github.com/kubernetes/cloud-provider-gcp:master into master Jun 22, 2022
@openshift-ci openshift-ci bot added bugzilla/severity-high Referenced Bugzilla bug's severity is high for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. labels Jun 22, 2022
@openshift-ci
Copy link

openshift-ci bot commented Jun 22, 2022

@cloud-team-rebase-bot[bot]: This pull request references Bugzilla bug 2087042, which is valid. The bug has been updated to refer to the pull request using the external bug tracker.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.11.0) matches configured target release for branch (4.11.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

Requesting review from QA contact:
/cc @sunzhaohua2

In response to this:

Bug 2087042: Merge https://github.com/kubernetes/cloud-provider-gcp:master into master

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci openshift-ci bot requested a review from sunzhaohua2 June 22, 2022 10:39
@Fedosin
Copy link

Fedosin commented Jun 22, 2022

/retest

@openshift-ci
Copy link

openshift-ci bot commented Jun 22, 2022

@cloud-team-rebase-bot[bot]: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-gcp-ccm-install 676418a link false /test e2e-gcp-ccm-install
ci/prow/e2e-gcp-ccm 676418a link false /test e2e-gcp-ccm

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@Fedosin
Copy link

Fedosin commented Jun 23, 2022

/lgtm
/approve

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jun 23, 2022
@openshift-ci
Copy link

openshift-ci bot commented Jun 23, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Fedosin

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 23, 2022
@openshift-ci openshift-ci bot merged commit 00474d6 into openshift:master Jun 23, 2022
@openshift-ci
Copy link

openshift-ci bot commented Jun 23, 2022

@cloud-team-rebase-bot[bot]: Some pull requests linked via external trackers have merged:

The following pull requests linked via external trackers have not merged:

These pull request must merge or be unlinked from the Bugzilla bug in order for it to move to the next state. Once unlinked, request a bug refresh with /bugzilla refresh.

Bugzilla bug 2087042 has not been moved to the MODIFIED state.

In response to this:

Bug 2087042: Merge https://github.com/kubernetes/cloud-provider-gcp:master into master

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. bugzilla/severity-high Referenced Bugzilla bug's severity is high for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet