mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-26 06:50:23 +00:00
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:
parent
63b17fc01e
commit
21e9acee78
@ -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)
|
||||||
}
|
}
|
||||||
|
@ -820,6 +820,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+"\"")
|
||||||
|
Loading…
Reference in New Issue
Block a user