stolostron / multicluster-global-hub

the main repository for the multicluster global hub
Apache License 2.0
21 stars 32 forks source link

:sparkles: Migration enhancement #1233

Closed clyang82 closed 2 days ago

clyang82 commented 6 days ago

Summary

  1. remove the backup secret since the -current-hub bookstrap secret can be added by default
  2. retry for conflict error
  3. wait for 10 seconds to ensure klusterletconfig is applied and then update hubAcceptClient to false to trigger the migration (TODO: there is condition indicates the klusterletconfig is applied)
  4. remove the managed cluster when the cluster hubAcceptClient is false

Related issue(s)

Fixes # https://issues.redhat.com/browse/ACM-15220

Tests

yanmxa commented 2 days ago

/lgtm

openshift-ci[bot] commented 2 days ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: clyang82, yanmxa

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: - ~~[OWNERS](https://github.com/stolostron/multicluster-global-hub/blob/main/OWNERS)~~ [clyang82,yanmxa] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment
sonarcloud[bot] commented 2 days ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
86.4% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud