csi: update cephcsi to v3.7.0 release

As cephcsi v3.7.0 is released updating
CephCSI to v3.7.0 in Rook and defaulting
the minimum version to v3.7.0

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 52d410a99b)
This commit is contained in:
Madhu Rajanna authored and Mergify committed 2022-08-23 04:30:00 +00:00
1 parent 042377276a
commit 02c4c5879c
8 files changed
+29 -28

No files matched your search

+1 -1
View File
@@ -111,7 +111,7 @@ The following tables lists the configurable parameters of the rook-operator char
| `csi.enableLiveness` | Enable Ceph CSI Liveness sidecar deployment. | `false` |
| `csi.forceCephFSKernelClient` | Enable Ceph Kernel clients on kernel < 4.17 which support quotas for Cephfs. | `true` |
| `csi.kubeletDirPath` | Kubelet root directory path (if the Kubelet uses a different path for the `--root-dir` flag) | `/var/lib/kubelet` |
| `csi.cephcsi.image` | Ceph CSI image. | `quay.io/cephcsi/cephcsi:v3.6.2` |
| `csi.cephcsi.image` | Ceph CSI image. | `quay.io/cephcsi/cephcsi:v3.7.0` |
| `csi.rbdPluginUpdateStrategy` | CSI Rbd plugin daemonset update strategy, supported values are OnDelete and RollingUpdate. | `RollingUpdate` |
| `csi.cephFSPluginUpdateStrategy` | CSI CephFS plugin daemonset update strategy, supported values are OnDelete and RollingUpdate. | `RollingUpdate` |
| `csi.nfsPluginUpdateStrategy` | CSI NFS plugin daemonset update strategy, supported values are OnDelete and RollingUpdate. | `RollingUpdate` |
@@ -18,7 +18,7 @@ kubectl -n $ROOK_OPERATOR_NAMESPACE edit configmap rook-ceph-operator-config
The default upstream images are included below, which you can change to your desired images.
```yaml
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: "k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.5.1"
ROOK_CSI_PROVISIONER_IMAGE: "k8s.gcr.io/sig-storage/csi-provisioner:v3.1.0"
ROOK_CSI_ATTACHER_IMAGE: "k8s.gcr.io/sig-storage/csi-attacher:v3.4.0"
+1 -1
View File
@@ -352,7 +352,7 @@ csi:
#rbdLivenessMetricsPort: 9080
#kubeletDirPath: /var/lib/kubelet
#cephcsi:
#image: quay.io/cephcsi/cephcsi:v3.6.2
#image: quay.io/cephcsi/cephcsi:v3.7.0
#registrar:
#image: registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.5.1
#provisioner:
+1 -1
View File
@@ -1,5 +1,5 @@
quay.io/ceph/ceph:v17.2.3
quay.io/cephcsi/cephcsi:v3.6.2
quay.io/cephcsi/cephcsi:v3.7.0
quay.io/csiaddons/k8s-sidecar:v0.4.0
quay.io/csiaddons/volumereplication-operator:v0.3.0
registry.k8s.io/sig-storage/csi-attacher:v3.4.0
+1 -1
View File
@@ -177,7 +177,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"
+1 -1
View File
@@ -125,7 +125,7 @@ var (
// manually challenging.
var (
// image names
DefaultCSIPluginImage = "quay.io/cephcsi/cephcsi:v3.6.2"
DefaultCSIPluginImage = "quay.io/cephcsi/cephcsi:v3.7.0"
DefaultNFSPluginImage = "registry.k8s.io/sig-storage/nfsplugin:v4.0.0"
DefaultRegistrarImage = "registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.5.1"
DefaultProvisionerImage = "registry.k8s.io/sig-storage/csi-provisioner:v3.1.0"
+4 -6
View File
@@ -25,16 +25,14 @@ import (
)
var (
//minimum supported version is 3.5.0
minimum = CephCSIVersion{3, 5, 0}
//minimum supported version is 3.7.0
minimum = CephCSIVersion{3, 7, 0}
//supportedCSIVersions are versions that rook supports
releasev350 = CephCSIVersion{3, 5, 0}
releasev360 = CephCSIVersion{3, 6, 0}
releasev370 = CephCSIVersion{3, 7, 0}
supportedCSIVersions = []CephCSIVersion{
minimum,
releasev350,
releasev360,
releasev370,
}
// custom ceph.conf is supported in v3.5.0+
+19 -16
View File
@@ -23,11 +23,12 @@ import (
)
var (
testMinVersion = CephCSIVersion{3, 5, 0}
testReleaseV340 = CephCSIVersion{3, 4, 0}
testMinVersion = CephCSIVersion{3, 7, 0}
testReleaseV350 = CephCSIVersion{3, 5, 0}
testReleaseV360 = CephCSIVersion{3, 6, 0}
testReleaseV361 = CephCSIVersion{3, 6, 1}
testReleaseV370 = CephCSIVersion{3, 7, 0}
testReleaseV371 = CephCSIVersion{3, 7, 1}
testVersionUnsupported = CephCSIVersion{4, 0, 0}
)
@@ -41,15 +42,17 @@ func TestIsAtLeast(t *testing.T) {
ret = testMinVersion.isAtLeast(&testMinVersion)
assert.Equal(t, true, ret)
// Test for 3.5.0
// Test version which is lesser
ret = testReleaseV350.isAtLeast(&testReleaseV340)
assert.Equal(t, true, ret)
// Test for 3.6.0
ret = testReleaseV360.isAtLeast(&testReleaseV360)
assert.Equal(t, true, ret)
// Test for 3.7.0
ret = testReleaseV370.isAtLeast(&testReleaseV360)
assert.Equal(t, true, ret)
// Test for 3.7.1
ret = testReleaseV371.isAtLeast(&testReleaseV360)
assert.Equal(t, true, ret)
}
func TestSupported(t *testing.T) {
@@ -60,13 +63,13 @@ func TestSupported(t *testing.T) {
ret = testVersionUnsupported.Supported()
assert.Equal(t, false, ret)
ret = testReleaseV340.Supported()
ret = testReleaseV360.Supported()
assert.Equal(t, false, ret)
ret = testReleaseV350.Supported()
ret = testReleaseV370.Supported()
assert.Equal(t, true, ret)
ret = testReleaseV360.Supported()
ret = testReleaseV371.Supported()
assert.Equal(t, true, ret)
}
@@ -104,13 +107,13 @@ func TestSupportsCustomCephConf(t *testing.T) {
ret = testMinVersion.SupportsCustomCephConf()
assert.True(t, ret)
ret = testReleaseV340.SupportsCustomCephConf()
assert.False(t, ret)
ret = testReleaseV350.SupportsCustomCephConf()
ret = testReleaseV360.SupportsCustomCephConf()
assert.True(t, ret)
ret = testReleaseV360.SupportsCustomCephConf()
ret = testReleaseV370.SupportsCustomCephConf()
assert.True(t, ret)
ret = testReleaseV371.SupportsCustomCephConf()
assert.True(t, ret)
}
@@ -123,7 +126,7 @@ func TestSupportsNsenter(t *testing.T) {
t.Run("AllowUnsupported=false and version 3.5 is too old", func(t *testing.T) {
AllowUnsupported = false
ret := testMinVersion.SupportsNsenter()
ret := testReleaseV350.SupportsNsenter()
assert.False(t, ret)
})