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]>
(cherry picked from commit a88f86e)
  • Loading branch information
Madhu-1 authored and mergify[bot] committed Dec 17, 2024
1 parent 63b17fc commit 21e9ace
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 21e9ace

Please sign in to comment.