From fd2753a582a9e0b3abcc131bed26c7eed9572292 Mon Sep 17 00:00:00 2001 From: Harrison Billings Date: Wed, 26 Nov 2025 13:04:11 -0700 Subject: [PATCH] chore: always fetch the latest release of vs when standing up cluster --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index daaef28..315a0d7 100644 --- a/Makefile +++ b/Makefile @@ -93,9 +93,11 @@ install-cluster-deps: kubectl --context=$(DEV_CLUSTER_CTX) create -f https://github.com/kubevirt/containerized-data-importer/releases/download/$${VERSION}/cdi-operator.yaml; \ kubectl --context=$(DEV_CLUSTER_CTX) create -f https://github.com/kubevirt/containerized-data-importer/releases/download/$${VERSION}/cdi-cr.yaml # Install volumesnapshot - kubectl --context=$(DEV_CLUSTER_CTX) apply -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/release-8.0/client/config/crd/snapshot.storage.k8s.io_volumesnapshotclasses.yaml - kubectl --context=$(DEV_CLUSTER_CTX) apply -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/release-8.0/client/config/crd/snapshot.storage.k8s.io_volumesnapshotcontents.yaml - kubectl --context=$(DEV_CLUSTER_CTX) apply -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/release-8.0/client/config/crd/snapshot.storage.k8s.io_volumesnapshots.yaml + VS_VERSION=$$(curl -s https://api.github.com/repos/kubernetes-csi/external-snapshotter/releases/latest | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/'); \ + kubectl --context=$(DEV_CLUSTER_CTX) apply -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/$${VS_VERSION}/client/config/crd/snapshot.storage.k8s.io_volumesnapshotclasses.yaml; \ + kubectl --context=$(DEV_CLUSTER_CTX) apply -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/$${VS_VERSION}/client/config/crd/snapshot.storage.k8s.io_volumesnapshotcontents.yaml; \ + kubectl --context=$(DEV_CLUSTER_CTX) apply -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/$${VS_VERSION}/client/config/crd/snapshot.storage.k8s.io_volumesnapshots.yaml; \ + kubectl --context=$(DEV_CLUSTER_CTX) apply -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/$${VS_VERSION}/deploy/kubernetes/snapshot-controller/setup-snapshot-controller.yaml .PHONY: test-e2e test-e2e: setup-test-e2e manifests generate fmt vet ## Run the e2e tests. Expected an isolated environment using Kind.