Skip to content

Commit

Permalink
e2e: remove vsg flag present in older snapshotter
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Madhu-1 committed Dec 16, 2024
1 parent 5cd52d4 commit 058e6c7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions e2e/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
4 changes: 4 additions & 0 deletions e2e/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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+"\"")
Expand Down

0 comments on commit 058e6c7

Please sign in to comment.