Skip to content

Commit 94b440e

Browse files
committed
removed unused variable n functions
1 parent 9b3328e commit 94b440e

File tree

2 files changed

+0
-34
lines changed

2 files changed

+0
-34
lines changed

tests/e2e/e2e_common.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -464,16 +464,9 @@ var (
464464

465465
// multiSvc env variables
466466
var (
467-
vcSessionWaitTime = 5 * time.Minute
468467
envStoragePolicyNameForSharedDsSvc1 = "STORAGE_POLICY_FOR_SHARED_DATASTORES_SVC1"
469468
envStoragePolicyNameForSharedDsSvc2 = "STORAGE_POLICY_FOR_SHARED_DATASTORES_SVC2"
470-
envSupervisorClusterNamespace1 = "SVC_NAMESPACE1"
471-
envNfsDatastoreName = "NFS_DATASTORE_NAME"
472-
envNfsDatastoreIP = "NFS_DATASTORE_IP"
473469
pwdRotationTimeout = 10 * time.Minute
474-
roleCnsDatastore = "CNS-SUPERVISOR-DATASTORE"
475-
roleCnsSearchAndSpbm = "CNS-SUPERVISOR-SEARCH-AND-SPBM"
476-
roleCnsHostConfigStorageAndCnsVm = "CNS-SUPERVISOR-HOST-CONFIG-STORAGE-AND-CNS-VM"
477470
)
478471

479472
// For rwx

tests/e2e/util.go

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,7 @@ import (
100100
var (
101101
defaultCluster *object.ClusterComputeResource
102102
svcClient clientset.Interface
103-
svcClient1 clientset.Interface
104103
svcNamespace string
105-
svcNamespace1 string
106104
vsanHealthClient *VsanClient
107105
clusterComputeResource []*object.ClusterComputeResource
108106
defaultDatastore *object.Datastore
@@ -1113,31 +1111,6 @@ func getSvcClientAndNamespace() (clientset.Interface, string) {
11131111
return svcClient, svcNamespace
11141112
}
11151113

1116-
// create kubernetes client for multi-supervisors clusters and returns it along with namespaces
1117-
func getMultiSvcClientAndNamespace() ([]clientset.Interface, []string, []error) {
1118-
var err error
1119-
if svcClient == nil {
1120-
if k8senv := GetAndExpectStringEnvVar("KUBECONFIG"); k8senv != "" {
1121-
svcClient, err = createKubernetesClientFromConfig(k8senv)
1122-
if err != nil {
1123-
return []clientset.Interface{}, []string{}, []error{err, nil}
1124-
}
1125-
}
1126-
svcNamespace = GetAndExpectStringEnvVar(envSupervisorClusterNamespace)
1127-
}
1128-
if svcClient1 == nil {
1129-
if k8senv := GetAndExpectStringEnvVar("KUBECONFIG1"); k8senv != "" {
1130-
svcClient1, err = createKubernetesClientFromConfig(k8senv)
1131-
if err != nil {
1132-
return []clientset.Interface{}, []string{}, []error{nil, err}
1133-
}
1134-
}
1135-
svcNamespace1 = GetAndExpectStringEnvVar(envSupervisorClusterNamespace1)
1136-
}
1137-
// returns list of clientset, namespace and error if any for both svc
1138-
return []clientset.Interface{svcClient, svcClient1}, []string{svcNamespace, svcNamespace1}, []error{}
1139-
}
1140-
11411114
// updateCSIDeploymentTemplateFullSyncInterval helps to update the
11421115
// FULL_SYNC_INTERVAL_MINUTES in deployment template. For this to take effect,
11431116
// we need to terminate the running csi controller pod.

0 commit comments

Comments
 (0)