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

Take the lastest changes from upstream kuberneres gce provider code #422

Closed
wants to merge 1 commit into from

Conversation

cezarygerard
Copy link
Contributor

Take the lastest changes from upstream kuberneres gce provider code (staging/src/k8s.io/legacy-cloud-providers/gce)

upstream commit id 68f808e6db388b249dae8c6c9dfb078bc0947b49

@k8s-ci-robot k8s-ci-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Dec 14, 2022
@cezarygerard
Copy link
Contributor Author

/hold

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 14, 2022
@k8s-ci-robot k8s-ci-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Dec 14, 2022
@jprzychodzen
Copy link
Contributor

/assign @jprzychodzen

@k8s-triage-robot
Copy link

Unknown CLA label state. Rechecking for CLA labels.

Send feedback to sig-contributor-experience at kubernetes/community.

/check-cla
/easycla

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Dec 14, 2022
…staging/src/k8s.io/legacy-cloud-providers/gce)

commit id 68f808e6db388b249dae8c6c9dfb078bc0947b49
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: cezarygerard
Once this PR has been reviewed and has the lgtm label, please ask for approval from jprzychodzen by writing /assign @jprzychodzen in a comment. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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

@@ -51,6 +53,11 @@ const (
// new load balancers and updating existing load balancers, recognizing when
// each is needed.
func (g *Cloud) ensureExternalLoadBalancer(clusterName string, clusterID string, apiService *v1.Service, existingFwdRule *compute.ForwardingRule, nodes []*v1.Node) (*v1.LoadBalancerStatus, error) {
// Skip service handling if it uses Regional Backend Services and handled by other controllers
if usesL4RBS(apiService, existingFwdRule) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this concerning?
in which versions is this controller running?
does it conflict with L4RBS implementation?

@k8s-ci-robot
Copy link
Contributor

@cezarygerard: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
cloud-provider-gcp-tests 7f63831 link true /test cloud-provider-gcp-tests

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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.

@cezarygerard
Copy link
Contributor Author

/assign @sdmodi

@k8s-ci-robot
Copy link
Contributor

@cezarygerard: GitHub didn't allow me to assign the following users: sdmodi.

Note that only kubernetes members with read permissions, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time.
For more information please see the contributor guide

In response to this:

/assign @sdmodi

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.


destinationRanges := []string{ipAddress}

if !reflect.DeepEqual(destinationRanges, fw.DestinationRanges) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this comparison is a bit awkward since destination ranges only has an IP address, no?

if len(fw.DestinationRanges) == 1 && fw.DestinationRanges[0] == ipAddress

since this seems to be pulled from intree we can follow up later

@cezarygerard
Copy link
Contributor Author

@jprzychodzen

I am not able to rerun the tests locally, and I will probably need to use the debugger.

Also I don't understand full why CCM has diverged form KCM in a way that KCM had some code added (by me and Slavik) and the CCM had some code added? What was the purpose of the new code in the CCM? It had never run on production.
@sdmodi maybe you know?

@aojea
Copy link
Member

aojea commented Dec 15, 2022

/assign @bowei

if the controllers drift it may cause problems on upgrades,

@jprzychodzen
Copy link
Contributor

FYI @cheftako @andrewsykim

@jprzychodzen
Copy link
Contributor

As per why specific changes were not picked up by /cloud-provider-gcp/providers - due to https://github.com/kubernetes/enhancements/tree/master/keps/sig-cloud-provider/2395-removing-in-tree-cloud-providers#phase-3---migrating-provider-code-to-provider-repos and freezeing of the legacy cloud providers, not feature work should happen in upstream code.

@jprzychodzen
Copy link
Contributor

/test cloud-provider-gcp-verify-up-to-date

@@ -492,7 +520,7 @@ func TestUpdateInternalLoadBalancerNodes(t *testing.T) {
assert.Contains(
t,
instances[0].Instance,
fmt.Sprintf("%s/zones/%s/instances/%s", vals.ProjectID, vals.ZoneName, node2Name),
fmt.Sprintf("projects/%s/zones/%s/instances/%s", vals.ProjectID, vals.ZoneName, node2Name),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't change that. legacy-cloud-provider has too old version of the /api library, which has different behavior for listing instances.

This was fixed in #262 for cloud-provider-gcp repository.

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 9, 2023
@k8s-ci-robot
Copy link
Contributor

PR needs rebase.

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.

@jprzychodzen
Copy link
Contributor

This PR (with fixes) already happened.

See #466

@jprzychodzen
Copy link
Contributor

/close

@k8s-ci-robot
Copy link
Contributor

@jprzychodzen: Closed this PR.

In response to this:

/close

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
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants