From d15d61e44e29cf52e040c58780765432a487fcb4 Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Mon, 6 Jun 2022 11:02:38 +0530 Subject: [PATCH] csi: change sidecar images repo to new link Change sidecar images repo to registry.k8s.io which is a redirect to k8s.gcr.io. Ref: https://github.com/kubernetes/k8s.io/wiki/ New-Registry-url-for-Kubernetes-(registry.k8s.io) Signed-off-by: Madhu Rajanna (cherry picked from commit 15da42cf0cca88553d5c73a6ce255b803b243022) --- Documentation/Helm-Charts/operator-chart.md | 12 ++++++------ .../Ceph-CSI/ceph-csi-snapshot.md | 2 +- deploy/charts/rook-ceph/values.yaml | 12 ++++++------ deploy/examples/images.txt | 12 ++++++------ deploy/examples/operator-openshift.yaml | 12 ++++++------ deploy/examples/operator.yaml | 12 ++++++------ images/ceph/Makefile | 2 +- pkg/operator/ceph/csi/spec.go | 12 ++++++------ 8 files changed, 38 insertions(+), 38 deletions(-) diff --git a/Documentation/Helm-Charts/operator-chart.md b/Documentation/Helm-Charts/operator-chart.md index 490ac1fc4..982f0e5a8 100644 --- a/Documentation/Helm-Charts/operator-chart.md +++ b/Documentation/Helm-Charts/operator-chart.md @@ -113,11 +113,11 @@ The following tables lists the configurable parameters of the rook-operator char | `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` | -| `csi.registrar.image` | Kubernetes CSI registrar image. | `k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.5.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:v5.0.1` | -| `csi.attacher.image` | Kubernetes CSI Attacher image. | `k8s.gcr.io/sig-storage/csi-attacher:v3.4.0` | +| `csi.registrar.image` | Kubernetes CSI registrar image. | `registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.5.0` | +| `csi.resizer.image` | Kubernetes CSI resizer image. | `registry.k8s.io/sig-storage/csi-resizer:v1.4.0` | +| `csi.provisioner.image` | Kubernetes CSI provisioner image. | `registry.k8s.io/sig-storage/csi-provisioner:v3.1.0` | +| `csi.snapshotter.image` | Kubernetes CSI snapshotter image. | `registry.k8s.io/sig-storage/csi-snapshotter:v5.0.1` | +| `csi.attacher.image` | Kubernetes CSI Attacher image. | `registry.k8s.io/sig-storage/csi-attacher:v3.4.0` | | `csi.cephfsPodLabels` | Labels to add to the CSI CephFS Pods. | `` | | `csi.rbdPodLabels` | Labels to add to the CSI RBD Pods. | `` | | `csi.volumeReplication.enabled` | Enable Volume Replication. | `false` | @@ -125,7 +125,7 @@ The following tables lists the configurable parameters of the rook-operator char | `csi.csiAddons.enabled` | Enable CSIAddons | `false` | | `csi.csiAddons.image` | CSIAddons Sidecar image. | `quay.io/csiaddons/k8s-sidecar:v0.2.1` | | `csi.nfs.enabled` | Enable nfs driver. | `false` | -| `csi.nfs.image` | NFS nodeplugin image. | `k8s.gcr.io/sig-storage/nfsplugin:v3.1.0` | +| `csi.nfs.image` | NFS nodeplugin image. | `registry.k8s.io/sig-storage/nfsplugin:v3.1.0` | | `admissionController.tolerations` | Array of tolerations in YAML format which will be added to admission controller deployment. | `` | | `admissionController.nodeAffinity` | The node labels for affinity of the admission controller deployment [^1] | `` | | `monitoring.enabled` | Create necessary RBAC rules for Rook to integrate with Prometheus monitoring in the operator namespace. Requires Prometheus to be pre-installed. | `false` | diff --git a/Documentation/Storage-Configuration/Ceph-CSI/ceph-csi-snapshot.md b/Documentation/Storage-Configuration/Ceph-CSI/ceph-csi-snapshot.md index c66dd52e6..baa80f115 100644 --- a/Documentation/Storage-Configuration/Ceph-CSI/ceph-csi-snapshot.md +++ b/Documentation/Storage-Configuration/Ceph-CSI/ceph-csi-snapshot.md @@ -9,7 +9,7 @@ title: Snapshots - Install the snapshot controller and snapshot v1/v1beta1 CRD as required. More info can be found [here](https://github.com/kubernetes-csi/external-snapshotter/tree/v4.0.0#usage). !!! note - If only Alpha snapshots are available, enable snapshotter in `rook-ceph-operator-config` or helm chart `values.yaml`, change the external-snapshotter image to `k8s.gcr.io/sig-storage/csi-snapshotter:v1.2.2` and refer to the [alpha snapshots documentation](https://github.com/rook/rook/blob/release-1.3/Documentation/ceph-csi-drivers.md#rbd-snapshots) + If only Alpha snapshots are available, enable snapshotter in `rook-ceph-operator-config` or helm chart `values.yaml`, change the external-snapshotter image to `registry.k8s.io/sig-storage/csi-snapshotter:v1.2.2` and refer to the [alpha snapshots documentation](https://github.com/rook/rook/blob/release-1.3/Documentation/ceph-csi-drivers.md#rbd-snapshots) - We also need a `VolumeSnapshotClass` for volume snapshot to work. The purpose of a `VolumeSnapshotClass` is defined in [the kubernetes diff --git a/deploy/charts/rook-ceph/values.yaml b/deploy/charts/rook-ceph/values.yaml index 88b9da6ec..64459b11d 100644 --- a/deploy/charts/rook-ceph/values.yaml +++ b/deploy/charts/rook-ceph/values.yaml @@ -349,15 +349,15 @@ csi: #cephcsi: #image: quay.io/cephcsi/cephcsi:v3.6.1 #registrar: - #image: k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.5.0 + #image: registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.5.0 #provisioner: - #image: k8s.gcr.io/sig-storage/csi-provisioner:v3.1.0 + #image: registry.k8s.io/sig-storage/csi-provisioner:v3.1.0 #snapshotter: - #image: k8s.gcr.io/sig-storage/csi-snapshotter:v5.0.1 + #image: registry.k8s.io/sig-storage/csi-snapshotter:v5.0.1 #attacher: - #image: k8s.gcr.io/sig-storage/csi-attacher:v3.4.0 + #image: registry.k8s.io/sig-storage/csi-attacher:v3.4.0 #resizer: - #image: k8s.gcr.io/sig-storage/csi-resizer:v1.4.0 + #image: registry.k8s.io/sig-storage/csi-resizer:v1.4.0 # Labels to add to the CSI CephFS Deployments and DaemonSets Pods. #cephfsPodLabels: "key1=value1,key2=value2" # Labels to add to the CSI NFS Deployments and DaemonSets Pods. @@ -377,7 +377,7 @@ csi: # Enable the nfs csi driver. nfs: enabled: false - #image: "k8s.gcr.io/sig-storage/nfsplugin:v3.1.0" + #image: "registry.k8s.io/sig-storage/nfsplugin:v3.1.0" enableDiscoveryDaemon: false cephCommandsTimeoutSeconds: "15" diff --git a/deploy/examples/images.txt b/deploy/examples/images.txt index e9084f77e..eb93345a6 100644 --- a/deploy/examples/images.txt +++ b/deploy/examples/images.txt @@ -1,11 +1,11 @@ - k8s.gcr.io/sig-storage/csi-attacher:v3.4.0 - k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.5.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:v5.0.1 - k8s.gcr.io/sig-storage/nfsplugin:v3.1.0 quay.io/ceph/ceph:v16.2.9 quay.io/cephcsi/cephcsi:v3.6.1 quay.io/csiaddons/k8s-sidecar:v0.2.1 quay.io/csiaddons/volumereplication-operator:v0.3.0 + registry.k8s.io/sig-storage/csi-attacher:v3.4.0 + registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.5.0 + registry.k8s.io/sig-storage/csi-provisioner:v3.1.0 + registry.k8s.io/sig-storage/csi-resizer:v1.4.0 + registry.k8s.io/sig-storage/csi-snapshotter:v5.0.1 + registry.k8s.io/sig-storage/nfsplugin:v3.1.0 rook/ceph:v1.9.4 diff --git a/deploy/examples/operator-openshift.yaml b/deploy/examples/operator-openshift.yaml index ae042f72c..6e3b82ef2 100644 --- a/deploy/examples/operator-openshift.yaml +++ b/deploy/examples/operator-openshift.yaml @@ -174,12 +174,12 @@ data: # 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.1" - # ROOK_CSI_REGISTRAR_IMAGE: "k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.5.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:v5.0.1" - # ROOK_CSI_ATTACHER_IMAGE: "k8s.gcr.io/sig-storage/csi-attacher:v3.4.0" - # ROOK_CSI_NFS_IMAGE: "k8s.gcr.io/sig-storage/nfsplugin:v3.1.0" + # ROOK_CSI_REGISTRAR_IMAGE: "registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.5.0" + # 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" + # ROOK_CSI_SNAPSHOTTER_IMAGE: "registry.k8s.io/sig-storage/csi-snapshotter:v5.0.1" + # ROOK_CSI_ATTACHER_IMAGE: "registry.k8s.io/sig-storage/csi-attacher:v3.4.0" + # ROOK_CSI_NFS_IMAGE: "registry.k8s.io/sig-storage/nfsplugin:v3.1.0" # (Optional) set user created priorityclassName for csi plugin pods. CSI_PLUGIN_PRIORITY_CLASSNAME: "system-node-critical" diff --git a/deploy/examples/operator.yaml b/deploy/examples/operator.yaml index 31dd615c3..95293c140 100644 --- a/deploy/examples/operator.yaml +++ b/deploy/examples/operator.yaml @@ -89,12 +89,12 @@ data: # 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.1" - # ROOK_CSI_REGISTRAR_IMAGE: "k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.5.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:v5.0.1" - # ROOK_CSI_ATTACHER_IMAGE: "k8s.gcr.io/sig-storage/csi-attacher:v3.4.0" - # ROOK_CSI_NFS_IMAGE: "k8s.gcr.io/sig-storage/nfsplugin:v3.1.0" + # ROOK_CSI_REGISTRAR_IMAGE: "registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.5.0" + # 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" + # ROOK_CSI_SNAPSHOTTER_IMAGE: "registry.k8s.io/sig-storage/csi-snapshotter:v5.0.1" + # ROOK_CSI_ATTACHER_IMAGE: "registry.k8s.io/sig-storage/csi-attacher:v3.4.0" + # ROOK_CSI_NFS_IMAGE: "registry.k8s.io/sig-storage/nfsplugin:v3.1.0" # (Optional) set user created priorityclassName for csi plugin pods. CSI_PLUGIN_PRIORITY_CLASSNAME: "system-node-critical" diff --git a/images/ceph/Makefile b/images/ceph/Makefile index 9d2376f99..2e04b96cb 100755 --- a/images/ceph/Makefile +++ b/images/ceph/Makefile @@ -147,7 +147,7 @@ list-image: ## Create a list of images for offline installation rm -f $(IMAGE_TMP) awk '/image:/ {print $2}' $(MANIFESTS_DIR)/operator.yaml $(MANIFESTS_DIR)/cluster.yaml | \ cut -d: -f2- | tee $(IMAGE_TMP) - awk '/quay.io/ || /k8s.gcr.io/ {print $3}' ../../pkg/operator/ceph/csi/spec.go | \ + awk '/quay.io/ || /registry.k8s.io/ {print $3}' ../../pkg/operator/ceph/csi/spec.go | \ cut -d= -f2- | tr -d '"' | tee -a $(IMAGE_TMP) rm -f $(MANIFESTS_DIR)/images.txt cat $(IMAGE_TMP) | sort -h | uniq | tee $(MANIFESTS_DIR)/images.txt diff --git a/pkg/operator/ceph/csi/spec.go b/pkg/operator/ceph/csi/spec.go index 8ce509571..059fddfc5 100644 --- a/pkg/operator/ceph/csi/spec.go +++ b/pkg/operator/ceph/csi/spec.go @@ -123,12 +123,12 @@ var ( var ( // image names DefaultCSIPluginImage = "quay.io/cephcsi/cephcsi:v3.6.1" - DefaultNFSPluginImage = "k8s.gcr.io/sig-storage/nfsplugin:v3.1.0" - DefaultRegistrarImage = "k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.5.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:v5.0.1" - DefaultResizerImage = "k8s.gcr.io/sig-storage/csi-resizer:v1.4.0" + DefaultNFSPluginImage = "registry.k8s.io/sig-storage/nfsplugin:v3.1.0" + DefaultRegistrarImage = "registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.5.0" + DefaultProvisionerImage = "registry.k8s.io/sig-storage/csi-provisioner:v3.1.0" + DefaultAttacherImage = "registry.k8s.io/sig-storage/csi-attacher:v3.4.0" + DefaultSnapshotterImage = "registry.k8s.io/sig-storage/csi-snapshotter:v5.0.1" + DefaultResizerImage = "registry.k8s.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"