diff --git a/tests/framework/installer/ceph_manifests.go b/tests/framework/installer/ceph_manifests.go index f40109e8b..7e7b206ba 100644 --- a/tests/framework/installer/ceph_manifests.go +++ b/tests/framework/installer/ceph_manifests.go @@ -18,6 +18,7 @@ package installer import ( "fmt" + "regexp" "strconv" "strings" @@ -112,7 +113,12 @@ func (m *CephManifestsMaster) GetToolbox() string { manifest = strings.ReplaceAll(manifest, "name: rook-direct-mount", "name: rook-ceph-tools") return strings.ReplaceAll(manifest, "app: rook-direct-mount", "app: rook-ceph-tools") } - return m.settings.readManifest("toolbox.yaml") + manifest := m.settings.readManifest("toolbox.yaml") + // The toolbox uses the ceph image, so replace the version that is being tested + // The regex allows for any character in the tag ("\S" --> non-whitespace character) + versionRegex := regexp.MustCompile(`image: quay.io/ceph/ceph:\S+`) + manifest = versionRegex.ReplaceAllString(manifest, "image: "+m.settings.CephVersion.Image) + return manifest } //**********************************************************************************