Upgrade guest cluster kubernetes version can also update the cloud provider chart version

  • Related issues: #2546 [BUG] Harvester Cloud Provider is not able to deploy upgraded container after upgrading the cluster

Category:

  • Rancher integration

Verification Steps

  1. Prepare the previous stable Rancher rc version and Harvester
  2. Update rke-metadata-config to {"refresh-interval-minutes":"1440","url":"https://yufa-dev.s3.ap-east-1.amazonaws.com/data.json"} in global settings image
  3. Update the ui-dashboard-index to https://releases.rancher.com/dashboard/latest/index.html
  4. Set ui-offline-preferred to Remote
  5. Refresh web page (ctrl + r)
  6. Open Create RKE2 cluster page
  7. Check the show deprecated kubernetes patched versions image
  8. Select v1.23.8+rke2r1
  9. Finish the RKE2 cluster provision image
  10. Check the current cloud provider version in workload page image
  11. Edit RKE2 cluster, upgrade the kubernetes version to 1.23.9-rc3+rke2r1 image image
  12. Wait for update finish image
  13. The cloud provider is upgrading image
  14. delete the old cloud provider version pod (v0.1.3) image
  15. Wait for newer version cloud provider have been bumped image image

Expected Results

After upgrading the existing RKE2 guest cluster kubernetes version from older v1.23.8+rke2r1 to 1.23.9-rc3+rke2r1. The Harvester cloud provider can successfully updated from v0.1.3 to v0.1.4

Cloud provider before upgrade: v0.1.3 image

After upgrade: v0.1.4 image