Harvester Cloud Provider compatibility check

  • Related issues: #2753 [FEATURE] Harvester Cloud Provider compatibility check enhancement

Category:

  • Rancher Integration

Verification Steps

  1. Open Rancher Global settings
  2. Edit the rke-metadata-config
  3. Change the default url to https://harvester-dev.oss-cn-hangzhou.aliyuncs.com/Untitled-1.json which include the following cloud provider and csi-driver chart changes
    "charts": {
        "harvester-cloud-provider": {
        "repo": "rancher-rke2-charts",
        "version": "1.1.0"
        },
        "harvester-csi-driver": {
        "repo": "rancher-rke2-charts",
        "version": "1.1.0"
        },
    
  4. Save and reload page
  5. Open the create RKE2 cluster page
  6. Select the incomparable RKE2 version
  7. Check the Cloud provider drop down
  8. Enable Harvester API in Preference -> Enable Developer Tools & Features
  9. Open settings
  10. Click view API of any setting
  11. Click up
  12. open the id": “harvester-csi-ccm-versions”
  13. Or directly access https://192.168.122.162/v1/harvester/harvesterhci.io.settings/harvester-csi-ccm-versions
  14. Click Edit button
  15. Change the default value to {"harvester-cloud-provider":">=0.0.1 <0.1.2","harvester-csi-provider":">=0.0.1 <0.1.2"} image
  16. Show and Send request
  17. Repeat step 5 - 7

Expected Results

  1. When we change the cloud provider and csi-driver chart version in Rancher rke-metadata-config setting, Then we select the incompatibility RKE2 version, the Harvester cloud provider is disabled and there will be a warning banner image

  2. When we change the cloud provider and csi-driver chart version in Harvester csi-ccm-versions according to Semver expression Then we select the incompatibility RKE2 versions, the Harvester cloud provider is disabled and there will be a warning banner image