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

🐛 KCP should set a timeout when trying to connect to remote cluster #2708

Merged
merged 1 commit into from
Mar 18, 2020
Merged

🐛 KCP should set a timeout when trying to connect to remote cluster #2708

merged 1 commit into from
Mar 18, 2020

Conversation

frapposelli
Copy link
Member

@frapposelli frapposelli commented Mar 18, 2020

What this PR does / why we need it:

Adds a restConfig timeout to 10 seconds to avoid getting stuck when deleting a self-managed cluster

Fixes #2705

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Mar 18, 2020
@k8s-ci-robot k8s-ci-robot requested review from justinsb and ncdc March 18, 2020 15:04
@frapposelli
Copy link
Member Author

/assign @vincepri @detiber

reterr = kerrors.NewAggregate([]error{reterr, err})

// If we don't have a DeletionTimestamp set, we try to update status
if kcp.ObjectMeta.DeletionTimestamp.IsZero() {
Copy link
Member

Choose a reason for hiding this comment

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

I'd move this check inside updateStatus on 325-ish, right before GetWorkloadCluster call

@vincepri vincepri changed the title 🐛 fix restclient timeout 🐛 KCP should set a timeout when trying to connect to remote cluster Mar 18, 2020
@vincepri
Copy link
Member

/milestone v0.3.2
/approve
/assign @randomvariable

@vincepri
Copy link
Member

This should be ready to go

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: frapposelli, vincepri

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 18, 2020
@randomvariable
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 18, 2020
@k8s-ci-robot k8s-ci-robot merged commit 91215b8 into kubernetes-sigs:master Mar 18, 2020
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

KCP deferred updates stall cluster deletion
5 participants