forked from rook/rook
test: generate long node name depending on test suite
The generation of a long node name in the integration tests was being done based on the k8s version. In the past, older K8s versions did not support the changing name. Now it's more maintainable if we generate the long name depending on the test suite. Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
This commit is contained in:
@@ -920,7 +920,7 @@ func NewCephInstaller(t func() *testing.T, clientset *kubernetes.Clientset, sett
|
||||
k8shelper: k8shelp,
|
||||
helmHelper: utils.NewHelmHelper(testHelmPath()),
|
||||
k8sVersion: version.String(),
|
||||
changeHostnames: k8shelp.VersionAtLeast("v1.18.0"),
|
||||
changeHostnames: settings.ChangeHostName,
|
||||
T: t,
|
||||
}
|
||||
flag.Parse()
|
||||
|
||||
@@ -45,6 +45,7 @@ type TestCephSettings struct {
|
||||
SkipCleanupPolicy bool
|
||||
DirectMountToolbox bool
|
||||
EnableVolumeReplication bool
|
||||
ChangeHostName bool
|
||||
RookVersion string
|
||||
CephVersion cephv1.CephVersionSpec
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user