From 9c35bf17be8b12aa762cd80c02cacaa3efe2b2ba Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Wed, 24 Aug 2022 08:00:40 +0530 Subject: [PATCH] csi: make cephcsi 3.6.0 as minimum supported version Setting the min version to 3.7 will make upgrade difficult. If someone is using any different/custom version, this means they won't be able to upgrade to rook v1.10 unless they also update their csi image at the same time. If we set the min version to 3.6, it will give some time buffer to allow them to change the csi driver later. ref: https://github.com/rook/rook/pull/10759#discussion_r953014295 Signed-off-by: Madhu Rajanna (cherry picked from commit 6a650e1c9dea61008eeebe525b11ee6f1a54063a) --- deploy/examples/operator.yaml | 2 +- pkg/operator/ceph/csi/version.go | 2 +- pkg/operator/ceph/csi/version_test.go | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/deploy/examples/operator.yaml b/deploy/examples/operator.yaml index ce480422c..014a0f012 100644 --- a/deploy/examples/operator.yaml +++ b/deploy/examples/operator.yaml @@ -92,7 +92,7 @@ data: # The default version of CSI supported by Rook will be started. To change the version # of the CSI driver to something other than what is officially supported, change # these images to the desired release of the CSI driver. - # ROOK_CSI_CEPH_IMAGE: "quay.io/cephcsi/cephcsi:v3.6.2" + # ROOK_CSI_CEPH_IMAGE: "quay.io/cephcsi/cephcsi:v3.7.0" # ROOK_CSI_REGISTRAR_IMAGE: "registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.5.1" # ROOK_CSI_RESIZER_IMAGE: "registry.k8s.io/sig-storage/csi-resizer:v1.4.0" # ROOK_CSI_PROVISIONER_IMAGE: "registry.k8s.io/sig-storage/csi-provisioner:v3.1.0" diff --git a/pkg/operator/ceph/csi/version.go b/pkg/operator/ceph/csi/version.go index 7546c1556..fbea487a4 100644 --- a/pkg/operator/ceph/csi/version.go +++ b/pkg/operator/ceph/csi/version.go @@ -26,7 +26,7 @@ import ( var ( //minimum supported version is 3.7.0 - minimum = CephCSIVersion{3, 7, 0} + minimum = CephCSIVersion{3, 6, 0} //supportedCSIVersions are versions that rook supports releasev370 = CephCSIVersion{3, 7, 0} diff --git a/pkg/operator/ceph/csi/version_test.go b/pkg/operator/ceph/csi/version_test.go index b155829d8..84e8c6ed3 100644 --- a/pkg/operator/ceph/csi/version_test.go +++ b/pkg/operator/ceph/csi/version_test.go @@ -23,7 +23,7 @@ import ( ) var ( - testMinVersion = CephCSIVersion{3, 7, 0} + testMinVersion = CephCSIVersion{3, 6, 0} testReleaseV350 = CephCSIVersion{3, 5, 0} testReleaseV360 = CephCSIVersion{3, 6, 0} testReleaseV361 = CephCSIVersion{3, 6, 1} @@ -64,7 +64,7 @@ func TestSupported(t *testing.T) { assert.Equal(t, false, ret) ret = testReleaseV360.Supported() - assert.Equal(t, false, ret) + assert.Equal(t, true, ret) ret = testReleaseV370.Supported() assert.Equal(t, true, ret)