Merge pull request #11675 from travisn/upgrade-test-msgr2

test: Fix upgrade test for msgr2 setting
This commit is contained in:
Travis Nielsen authored and GitHub committed 2023-02-14 20:25:43 -07:00
commit 6035c09c5b
1 file changed
+7 -1
@@ -86,7 +86,13 @@ func (m *CephManifestsPreviousVersion) GetCommonExternal() string {
// GetRookCluster returns rook-cluster manifest
func (m *CephManifestsPreviousVersion) GetCephCluster() string {
return m.latest.GetCephCluster()
c := m.latest.GetCephCluster()
// Remove the requireMsgr2 setting if in v1.10
if m.settings.RookVersion == Version1_10 {
return strings.Replace(c, "requireMsgr2: false", "", 1)
}
return c
}
func (m *CephManifestsPreviousVersion) GetBlockSnapshotClass(snapshotClassName, reclaimPolicy string) string {