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>
This commit is contained in:
Madhu Rajanna 2024-12-16 10:28:04 +01:00 committed by mergify[bot]
parent 21d639df20
commit a88f86e9a4
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) data = replaceLogLevelInTemplate(data)
// disable VGS alpha feature, TODO: remove this in next release (3.14.0)
data = disableVGSAlphaCLIArg(data)
if yrn.oneReplica { if yrn.oneReplica {
data = oneReplicaDeployYaml(data) data = oneReplicaDeployYaml(data)
} }

View File

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