rancher / distros-test-framework

5 stars 9 forks source link

Add rke2-charts version bump validations #186

Open mdrahman-suse opened 1 week ago

mdrahman-suse commented 1 week ago

As of now we are only validating the version for the components and cnis. We need to add charts version validation as well in the framework to test the expected value is present on the respective charts when the version is updated Check the charts versions, for example, flannel We can check all the charts versions in a specific version or commit as all the charts are available upon rke2 install

Command:

sudo cat /var/lib/rancher/rke2/data/v1.31.2-dev.5b9a8f82-b14249a4a1c2/charts/rke2-flannel.yaml | grep rke2-flannel

Response:

  name: "rke2-flannel"
    helm.cattle.io/chart-url: "https://rke2-charts.rancher.io/assets/rke2-flannel/rke2-flannel-v0.26.100.tgz" 

Also add tests to validate all these charts bumps

$ sudo ls /var/lib/rancher/rke2/data/v1.31.2*/charts
harvester-cloud-provider.yaml  rancher-vsphere-cpi.yaml  rke2-calico-crd.yaml  rke2-canal.yaml   rke2-coredns.yaml  rke2-ingress-nginx.yaml   rke2-multus.yaml           rke2-snapshot-controller.yaml      rke2-traefik-crd.yaml
harvester-csi-driver.yaml      rancher-vsphere-csi.yaml  rke2-calico.yaml      rke2-cilium.yaml  rke2-flannel.yaml  rke2-metrics-server.yaml  rke2-snapshot-controller-crd.yaml  rke2-snapshot-validation-webhook.yaml  rke2-traefik.yaml