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

✨ Check if there any managed clusters exists before hub cleanup #431

Conversation

RokibulHasan7
Copy link
Contributor

@RokibulHasan7 RokibulHasan7 commented Jun 2, 2024

Summary

If any managed clusters exist, clusteradm clean hangs for some time and then returns 'cluster manager still exists'. Therefore, we should check if any managed clusters exist before waiting for the hub cleanup and return the proper message.

Related issue(s)

Fixes #

Signed-off-by: Rokibul Hasan <mdrokibulhasan@appscode.com>
@openshift-ci openshift-ci bot requested review from itdove and ycyaoxdu June 2, 2024 12:29
@RokibulHasan7 RokibulHasan7 changed the title Check is there any managed clusters exists before hub cleanup ✨ Check is there any managed clusters exists before hub cleanup Jun 2, 2024
@RokibulHasan7 RokibulHasan7 changed the title ✨ Check is there any managed clusters exists before hub cleanup ✨ Check if there any managed clusters exists before hub cleanup Jun 2, 2024
@RokibulHasan7
Copy link
Contributor Author

/ok-to-test

Copy link

openshift-ci bot commented Jun 3, 2024

@RokibulHasan7: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/ok-to-test

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-sigs/prow repository.

pkg/cmd/clean/exec.go Outdated Show resolved Hide resolved
@zhujian7
Copy link
Member

zhujian7 commented Jun 3, 2024

/ok-to-test

Signed-off-by: Rokibul Hasan <mdrokibulhasan@appscode.com>
@zhujian7
Copy link
Member

zhujian7 commented Jun 3, 2024

/lgtm
/cc @qiujian16

Signed-off-by: Rokibul Hasan <mdrokibulhasan@appscode.com>
@openshift-ci openshift-ci bot removed the lgtm label Jun 3, 2024
Signed-off-by: Rokibul Hasan <mdrokibulhasan@appscode.com>
@qiujian16
Copy link
Member

/approve

@openshift-ci openshift-ci bot added the approved label Jun 3, 2024
pkg/cmd/clean/exec.go Outdated Show resolved Hide resolved
test/e2e/util/helper.go Outdated Show resolved Hide resolved
Signed-off-by: Rokibul Hasan <mdrokibulhasan@appscode.com>
@qiujian16
Copy link
Member

/approve
/lgtm

Copy link

openshift-ci bot commented Jun 3, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: qiujian16, RokibulHasan7

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-merge-bot openshift-merge-bot bot merged commit 6267edc into open-cluster-management-io:main Jun 3, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants