e2e: remove vsg flag present in older snapshotter

Remove the vsg flag present in the older snapshotter
which is meant only for the Alpha Release and we are
no longer installing Alpha CRD.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit a88f86e9a4)
This commit is contained in:
Madhu Rajanna 2024-12-16 10:28:04 +01:00 committed by mergify[bot]
parent 63b17fc01e
commit 21e9acee78
2 changed files with 7 additions and 0 deletions

View File

@ -252,6 +252,9 @@ func (yrn *yamlResourceNamespaced) Do(action kubectlAction) error {
data = replaceLogLevelInTemplate(data)
// disable VGS alpha feature, TODO: remove this in next release (3.14.0)
data = disableVGSAlphaCLIArg(data)
if yrn.oneReplica {
data = oneReplicaDeployYaml(data)
}

View File

@ -820,6 +820,10 @@ func checkMountOptions(pvcPath, appPath string, f *framework.Framework, mountFla
return err
}
func disableVGSAlphaCLIArg(template string) string {
return strings.ReplaceAll(template, "- \"--enable-volume-group-snapshots=true\"", "")
}
func addTopologyDomainsToDSYaml(template, labels string) string {
return strings.ReplaceAll(template, "# - \"--domainlabels=failure-domain/region,failure-domain/zone\"",
"- \"--domainlabels="+labels+"\"")