forked from rook/rook
Merge pull request #9665 from Madhu-1/fix-snapshotter
csi: bump csi snapshotter image to v5
This commit is contained in:
@@ -550,7 +550,7 @@ ROOK_CSI_REGISTRAR_IMAGE: "k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.4
|
||||
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"
|
||||
ROOK_CSI_RESIZER_IMAGE: "k8s.gcr.io/sig-storage/csi-resizer:v1.4.0"
|
||||
ROOK_CSI_SNAPSHOTTER_IMAGE: "k8s.gcr.io/sig-storage/csi-snapshotter:v4.2.0"
|
||||
ROOK_CSI_SNAPSHOTTER_IMAGE: "k8s.gcr.io/sig-storage/csi-snapshotter:v5.0.1"
|
||||
CSI_VOLUME_REPLICATION_IMAGE: "quay.io/csiaddons/volumereplication-operator:v0.3.0"
|
||||
ROOK_CSIADDONS_IMAGE: "quay.io/csiaddons/k8s-sidecar:v0.2.1"
|
||||
```
|
||||
@@ -575,7 +575,7 @@ k8s.gcr.io/sig-storage/csi-attacher:v3.4.0
|
||||
k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.4.0
|
||||
k8s.gcr.io/sig-storage/csi-provisioner:v3.1.0
|
||||
k8s.gcr.io/sig-storage/csi-resizer:v1.4.0
|
||||
k8s.gcr.io/sig-storage/csi-snapshotter:v4.2.0
|
||||
k8s.gcr.io/sig-storage/csi-snapshotter:v5.0.1
|
||||
quay.io/cephcsi/cephcsi:v3.5.1
|
||||
quay.io/csiaddons/volumereplication-operator:v0.3.0
|
||||
quay.io/csiaddons/k8s-sidecar:v0.2.1
|
||||
|
||||
@@ -140,7 +140,7 @@ The following tables lists the configurable parameters of the rook-operator char
|
||||
| `csi.registrar.image` | Kubernetes CSI registrar image. | `k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.4.0` |
|
||||
| `csi.resizer.image` | Kubernetes CSI resizer image. | `k8s.gcr.io/sig-storage/csi-resizer:v1.4.0` |
|
||||
| `csi.provisioner.image` | Kubernetes CSI provisioner image. | `k8s.gcr.io/sig-storage/csi-provisioner:v3.1.0` |
|
||||
| `csi.snapshotter.image` | Kubernetes CSI snapshotter image. | `k8s.gcr.io/sig-storage/csi-snapshotter:v4.2.0` |
|
||||
| `csi.snapshotter.image` | Kubernetes CSI snapshotter image. | `k8s.gcr.io/sig-storage/csi-snapshotter:v5.0.1` |
|
||||
| `csi.attacher.image` | Kubernetes CSI Attacher image. | `k8s.gcr.io/sig-storage/csi-attacher:v3.4.0` |
|
||||
| `csi.cephfsPodLabels` | Labels to add to the CSI CephFS Pods. | <none> |
|
||||
| `csi.rbdPodLabels` | Labels to add to the CSI RBD Pods. | <none> |
|
||||
|
||||
@@ -425,7 +425,7 @@ rules:
|
||||
verbs: ["update", "patch"]
|
||||
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||
resources: ["volumesnapshots"]
|
||||
verbs: ["get", "list", "watch", "update"]
|
||||
verbs: ["get", "list", "watch", "update", "patch"]
|
||||
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||
resources: ["volumesnapshotcontents"]
|
||||
verbs: ["create", "get", "list", "watch", "update", "delete"]
|
||||
@@ -434,10 +434,10 @@ rules:
|
||||
verbs: ["get", "list", "watch"]
|
||||
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||
resources: ["volumesnapshotcontents/status"]
|
||||
verbs: ["update"]
|
||||
verbs: ["update", "patch"]
|
||||
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||
resources: ["volumesnapshots/status"]
|
||||
verbs: ["update"]
|
||||
verbs: ["update", "patch"]
|
||||
---
|
||||
kind: ClusterRole
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
@@ -501,7 +501,7 @@ rules:
|
||||
verbs: ["list", "watch", "create", "update", "patch"]
|
||||
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||
resources: ["volumesnapshots"]
|
||||
verbs: ["get", "list", "watch", "update"]
|
||||
verbs: ["get", "list", "watch", "update", "patch"]
|
||||
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||
resources: ["volumesnapshotcontents"]
|
||||
verbs: ["create", "get", "list", "watch", "update", "delete"]
|
||||
@@ -510,10 +510,10 @@ rules:
|
||||
verbs: ["get", "list", "watch"]
|
||||
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||
resources: ["volumesnapshotcontents/status"]
|
||||
verbs: ["update"]
|
||||
verbs: ["update", "patch"]
|
||||
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||
resources: ["volumesnapshots/status"]
|
||||
verbs: ["update"]
|
||||
verbs: ["update", "patch"]
|
||||
- apiGroups: [""]
|
||||
resources: ["persistentvolumeclaims/status"]
|
||||
verbs: ["update", "patch"]
|
||||
|
||||
@@ -282,7 +282,7 @@ csi:
|
||||
#provisioner:
|
||||
#image: k8s.gcr.io/sig-storage/csi-provisioner:v3.1.0
|
||||
#snapshotter:
|
||||
#image: k8s.gcr.io/sig-storage/csi-snapshotter:v4.2.0
|
||||
#image: k8s.gcr.io/sig-storage/csi-snapshotter:v5.0.1
|
||||
#attacher:
|
||||
#image: k8s.gcr.io/sig-storage/csi-attacher:v3.4.0
|
||||
#resizer:
|
||||
|
||||
@@ -66,7 +66,7 @@ rules:
|
||||
verbs: ["update", "patch"]
|
||||
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||
resources: ["volumesnapshots"]
|
||||
verbs: ["get", "list", "watch", "update"]
|
||||
verbs: ["get", "list", "watch", "update", "patch"]
|
||||
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||
resources: ["volumesnapshotcontents"]
|
||||
verbs: ["create", "get", "list", "watch", "update", "delete"]
|
||||
@@ -75,10 +75,10 @@ rules:
|
||||
verbs: ["get", "list", "watch"]
|
||||
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||
resources: ["volumesnapshotcontents/status"]
|
||||
verbs: ["update"]
|
||||
verbs: ["update", "patch"]
|
||||
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||
resources: ["volumesnapshots/status"]
|
||||
verbs: ["update"]
|
||||
verbs: ["update", "patch"]
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRole
|
||||
@@ -160,7 +160,7 @@ rules:
|
||||
verbs: ["list", "watch", "create", "update", "patch"]
|
||||
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||
resources: ["volumesnapshots"]
|
||||
verbs: ["get", "list", "watch", "update"]
|
||||
verbs: ["get", "list", "watch", "update", "patch"]
|
||||
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||
resources: ["volumesnapshotcontents"]
|
||||
verbs: ["create", "get", "list", "watch", "update", "delete"]
|
||||
@@ -169,10 +169,10 @@ rules:
|
||||
verbs: ["get", "list", "watch"]
|
||||
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||
resources: ["volumesnapshotcontents/status"]
|
||||
verbs: ["update"]
|
||||
verbs: ["update", "patch"]
|
||||
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||
resources: ["volumesnapshots/status"]
|
||||
verbs: ["update"]
|
||||
verbs: ["update", "patch"]
|
||||
- apiGroups: [""]
|
||||
resources: ["persistentvolumeclaims/status"]
|
||||
verbs: ["update", "patch"]
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.4.0
|
||||
k8s.gcr.io/sig-storage/csi-provisioner:v3.1.0
|
||||
k8s.gcr.io/sig-storage/csi-resizer:v1.4.0
|
||||
k8s.gcr.io/sig-storage/csi-snapshotter:v4.2.0
|
||||
k8s.gcr.io/sig-storage/csi-snapshotter:v5.0.1
|
||||
quay.io/ceph/ceph:v16.2.7
|
||||
quay.io/cephcsi/cephcsi:v3.5.1
|
||||
quay.io/csiaddons/k8s-sidecar:v0.2.1
|
||||
|
||||
@@ -165,7 +165,7 @@ data:
|
||||
# ROOK_CSI_REGISTRAR_IMAGE: "k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.4.0"
|
||||
# ROOK_CSI_RESIZER_IMAGE: "k8s.gcr.io/sig-storage/csi-resizer:v1.4.0"
|
||||
# ROOK_CSI_PROVISIONER_IMAGE: "k8s.gcr.io/sig-storage/csi-provisioner:v3.1.0"
|
||||
# ROOK_CSI_SNAPSHOTTER_IMAGE: "k8s.gcr.io/sig-storage/csi-snapshotter:v4.2.0"
|
||||
# ROOK_CSI_SNAPSHOTTER_IMAGE: "k8s.gcr.io/sig-storage/csi-snapshotter:v5.0.1"
|
||||
# ROOK_CSI_ATTACHER_IMAGE: "k8s.gcr.io/sig-storage/csi-attacher:v3.4.0"
|
||||
|
||||
# (Optional) set user created priorityclassName for csi plugin pods.
|
||||
|
||||
@@ -83,7 +83,7 @@ data:
|
||||
# ROOK_CSI_REGISTRAR_IMAGE: "k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.4.0"
|
||||
# ROOK_CSI_RESIZER_IMAGE: "k8s.gcr.io/sig-storage/csi-resizer:v1.4.0"
|
||||
# ROOK_CSI_PROVISIONER_IMAGE: "k8s.gcr.io/sig-storage/csi-provisioner:v3.1.0"
|
||||
# ROOK_CSI_SNAPSHOTTER_IMAGE: "k8s.gcr.io/sig-storage/csi-snapshotter:v4.2.0"
|
||||
# ROOK_CSI_SNAPSHOTTER_IMAGE: "k8s.gcr.io/sig-storage/csi-snapshotter:v5.0.1"
|
||||
# ROOK_CSI_ATTACHER_IMAGE: "k8s.gcr.io/sig-storage/csi-attacher:v3.4.0"
|
||||
|
||||
# (Optional) set user created priorityclassName for csi plugin pods.
|
||||
|
||||
@@ -105,7 +105,7 @@ var (
|
||||
DefaultRegistrarImage = "k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.4.0"
|
||||
DefaultProvisionerImage = "k8s.gcr.io/sig-storage/csi-provisioner:v3.1.0"
|
||||
DefaultAttacherImage = "k8s.gcr.io/sig-storage/csi-attacher:v3.4.0"
|
||||
DefaultSnapshotterImage = "k8s.gcr.io/sig-storage/csi-snapshotter:v4.2.0"
|
||||
DefaultSnapshotterImage = "k8s.gcr.io/sig-storage/csi-snapshotter:v5.0.1"
|
||||
DefaultResizerImage = "k8s.gcr.io/sig-storage/csi-resizer:v1.4.0"
|
||||
DefaultVolumeReplicationImage = "quay.io/csiaddons/volumereplication-operator:v0.3.0"
|
||||
DefaultCSIAddonsImage = "quay.io/csiaddons/k8s-sidecar:v0.2.1"
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
const (
|
||||
// snapshotterVersion from which the snapshotcontroller and CRD will be
|
||||
// installed
|
||||
snapshotterVersion = "v4.0.0"
|
||||
snapshotterVersion = "v5.0.1"
|
||||
repoURL = "https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter"
|
||||
rbacPath = "deploy/kubernetes/snapshot-controller/rbac-snapshot-controller.yaml"
|
||||
controllerPath = "deploy/kubernetes/snapshot-controller/setup-snapshot-controller.yaml"
|
||||
@@ -83,7 +83,7 @@ func (k8sh *K8sHelper) snapshotController(action string) error {
|
||||
// WaitForSnapshotController check snapshotcontroller is ready within given
|
||||
// retries count.
|
||||
func (k8sh *K8sHelper) WaitForSnapshotController(retries int) error {
|
||||
namespace := "default"
|
||||
namespace := "kube-system"
|
||||
ctx := context.TODO()
|
||||
snapshotterName := "snapshot-controller"
|
||||
for i := 0; i < retries; i++ {
|
||||
|
||||
Reference in New Issue
Block a user