Merge pull request #12632 from rook/mergify/bp/release-1.12/pr-12631

tests: Multi cluster suite toolbox default version (backport #12631)
This commit is contained in:
Travis Nielsen authored and GitHub committed 2023-07-31 18:32:09 -06:00
commit a63d8a2278
1 file changed
+6 -4
+6 -4
View File
@@ -114,10 +114,12 @@ func (m *CephManifestsMaster) GetToolbox() string {
return strings.ReplaceAll(manifest, "app: rook-direct-mount", "app: rook-ceph-tools")
}
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)
if m.settings.CephVersion.Image != "" {
// 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
}