From 6714b86d3b2e08c512b5ce3631a7ededcc767f67 Mon Sep 17 00:00:00 2001 From: Zuhair AlSader Date: Thu, 8 Aug 2024 22:10:07 -0400 Subject: [PATCH] manifest: add registry name to docker images Signed-off-by: Zuhair AlSader --- Documentation/Helm-Charts/operator-chart.md | 2 +- PendingReleaseNotes.md | 1 + deploy/charts/rook-ceph/values.yaml | 2 +- deploy/examples/direct-mount.yaml | 2 +- deploy/examples/images.txt | 2 +- deploy/examples/operator-openshift.yaml | 2 +- deploy/examples/operator.yaml | 2 +- deploy/examples/osd-purge.yaml | 2 +- deploy/examples/sqlitevfs-client.yaml | 2 +- deploy/examples/toolbox-job.yaml | 4 ++-- deploy/examples/toolbox-operator-image.yaml | 2 +- tests/integration/ceph_upgrade_test.go | 2 +- 12 files changed, 13 insertions(+), 12 deletions(-) diff --git a/Documentation/Helm-Charts/operator-chart.md b/Documentation/Helm-Charts/operator-chart.md index d0a10680a..2a7173c73 100644 --- a/Documentation/Helm-Charts/operator-chart.md +++ b/Documentation/Helm-Charts/operator-chart.md @@ -151,7 +151,7 @@ The following table lists the configurable parameters of the rook-operator chart | `enableOBCWatchOperatorNamespace` | Whether the OBC provisioner should watch on the operator namespace or not, if not the namespace of the cluster will be used | `true` | | `hostpathRequiresPrivileged` | Runs Ceph Pods as privileged to be able to write to `hostPaths` in OpenShift with SELinux restrictions. | `false` | | `image.pullPolicy` | Image pull policy | `"IfNotPresent"` | -| `image.repository` | Image | `"rook/ceph"` | +| `image.repository` | Image | `"docker.io/rook/ceph"` | | `image.tag` | Image tag | `master` | | `imagePullSecrets` | imagePullSecrets option allow to pull docker images from private docker registry. Option will be passed to all service accounts. | `nil` | | `logLevel` | Global log level for the operator. Options: `ERROR`, `WARNING`, `INFO`, `DEBUG` | `"INFO"` | diff --git a/PendingReleaseNotes.md b/PendingReleaseNotes.md index 4f2228652..2ef38449c 100644 --- a/PendingReleaseNotes.md +++ b/PendingReleaseNotes.md @@ -25,3 +25,4 @@ - CephObjectStore support for keystone authentication for S3 and Swift (see [#9088](https://github.com/rook/rook/issues/9088)). - Support K8s versions v1.26 through v1.31. +- Use fully-qualified image names (`docker.io/rook/ceph`) in operator manifests and helm charts diff --git a/deploy/charts/rook-ceph/values.yaml b/deploy/charts/rook-ceph/values.yaml index 91ceae8be..f93548f38 100644 --- a/deploy/charts/rook-ceph/values.yaml +++ b/deploy/charts/rook-ceph/values.yaml @@ -4,7 +4,7 @@ image: # -- Image - repository: rook/ceph + repository: docker.io/rook/ceph # -- Image tag # @default -- `master` tag: master diff --git a/deploy/examples/direct-mount.yaml b/deploy/examples/direct-mount.yaml index 2788c7fc6..ff9ebbea2 100644 --- a/deploy/examples/direct-mount.yaml +++ b/deploy/examples/direct-mount.yaml @@ -19,7 +19,7 @@ spec: serviceAccountName: rook-ceph-default containers: - name: rook-direct-mount - image: rook/ceph:master + image: docker.io/rook/ceph:master command: ["/bin/bash"] args: ["-m", "-c", "/usr/local/bin/toolbox.sh"] imagePullPolicy: IfNotPresent diff --git a/deploy/examples/images.txt b/deploy/examples/images.txt index f97230f2a..88a25cdd0 100644 --- a/deploy/examples/images.txt +++ b/deploy/examples/images.txt @@ -1,3 +1,4 @@ + docker.io/rook/ceph:master gcr.io/k8s-staging-sig-storage/objectstorage-sidecar:v20240513-v0.1.0-35-gefb3255 quay.io/ceph/ceph:v18.2.4 quay.io/ceph/cosi:v0.1.2 @@ -8,4 +9,3 @@ registry.k8s.io/sig-storage/csi-provisioner:v5.0.1 registry.k8s.io/sig-storage/csi-resizer:v1.11.1 registry.k8s.io/sig-storage/csi-snapshotter:v8.0.1 - rook/ceph:master diff --git a/deploy/examples/operator-openshift.yaml b/deploy/examples/operator-openshift.yaml index d1aedbac9..36431f72d 100644 --- a/deploy/examples/operator-openshift.yaml +++ b/deploy/examples/operator-openshift.yaml @@ -673,7 +673,7 @@ spec: serviceAccountName: rook-ceph-system containers: - name: rook-ceph-operator - image: rook/ceph:master + image: docker.io/rook/ceph:master args: ["ceph", "operator"] securityContext: runAsNonRoot: true diff --git a/deploy/examples/operator.yaml b/deploy/examples/operator.yaml index 0527b057a..a1f2a5073 100644 --- a/deploy/examples/operator.yaml +++ b/deploy/examples/operator.yaml @@ -599,7 +599,7 @@ spec: serviceAccountName: rook-ceph-system containers: - name: rook-ceph-operator - image: rook/ceph:master + image: docker.io/rook/ceph:master args: ["ceph", "operator"] securityContext: runAsNonRoot: true diff --git a/deploy/examples/osd-purge.yaml b/deploy/examples/osd-purge.yaml index f7915180d..5d4b59409 100644 --- a/deploy/examples/osd-purge.yaml +++ b/deploy/examples/osd-purge.yaml @@ -28,7 +28,7 @@ spec: serviceAccountName: rook-ceph-purge-osd containers: - name: osd-removal - image: rook/ceph:master + image: docker.io/rook/ceph:master # TODO: Insert the OSD ID in the last parameter that is to be removed # The OSD IDs are a comma-separated list. For example: "0" or "0,2". # If you want to preserve the OSD PVCs, set `--preserve-pvc true`. diff --git a/deploy/examples/sqlitevfs-client.yaml b/deploy/examples/sqlitevfs-client.yaml index a821bd292..77f4613be 100644 --- a/deploy/examples/sqlitevfs-client.yaml +++ b/deploy/examples/sqlitevfs-client.yaml @@ -111,7 +111,7 @@ spec: initContainers: ## Setup Ceph SQLite VFS - name: setup - image: bitnami/kubectl:1.21.11 + image: docker.io/bitnami/kubectl:1.21.11 command: - /bin/bash - -c diff --git a/deploy/examples/toolbox-job.yaml b/deploy/examples/toolbox-job.yaml index 940cb9866..a6864f596 100644 --- a/deploy/examples/toolbox-job.yaml +++ b/deploy/examples/toolbox-job.yaml @@ -10,7 +10,7 @@ spec: spec: initContainers: - name: config-init - image: rook/ceph:master + image: docker.io/rook/ceph:master command: ["/usr/local/bin/toolbox.sh"] args: ["--skip-watch"] imagePullPolicy: IfNotPresent @@ -29,7 +29,7 @@ spec: mountPath: /var/lib/rook-ceph-mon containers: - name: script - image: rook/ceph:master + image: docker.io/rook/ceph:master volumeMounts: - mountPath: /etc/ceph name: ceph-config diff --git a/deploy/examples/toolbox-operator-image.yaml b/deploy/examples/toolbox-operator-image.yaml index 4e733c176..9b7ddf13f 100644 --- a/deploy/examples/toolbox-operator-image.yaml +++ b/deploy/examples/toolbox-operator-image.yaml @@ -25,7 +25,7 @@ spec: serviceAccountName: rook-ceph-default containers: - name: rook-ceph-tools-operator-image - image: rook/ceph:master + image: docker.io/rook/ceph:master command: - /bin/bash - -c diff --git a/tests/integration/ceph_upgrade_test.go b/tests/integration/ceph_upgrade_test.go index 2f77b6edc..e7dcb1c0f 100644 --- a/tests/integration/ceph_upgrade_test.go +++ b/tests/integration/ceph_upgrade_test.go @@ -380,7 +380,7 @@ func (s *UpgradeSuite) verifyOperatorImage(expectedImage string) { // verify that the operator spec is updated version, err := k8sutil.GetDeploymentImage(context.TODO(), s.k8sh.Clientset, systemNamespace, operatorContainer, operatorContainer) assert.NoError(s.T(), err) - assert.Equal(s.T(), "rook/ceph:"+expectedImage, version) + assert.Contains(s.T(), version, "rook/ceph:"+expectedImage) } func (s *UpgradeSuite) verifyRookUpgrade(numOSDs int) {