Update function signature of `testutil.NewGenericTestHelper`
Adds parameters like kubernetesHelper, k8scontext, etc to the NewGenericTestHelper func allowing it to be more general, and to be able to be usable through linkerd2-conformance
@@ -67,6 +67,7 @@ var LinkerdDeployReplicas = map[string]deploySpec{
// See - https://github.com/linkerd/linkerd2/issues/4530
func NewGenericTestHelper(
linkerd,
+ version,
namespace,
upgradeFromVersion,
clusterDomain,
@@ -76,9 +77,12 @@ func NewGenericTestHelper(
helmReleaseName string,
externalIssuer,
uninstall bool,
+ httpClient http.Client,
+ kubernetesHelper KubernetesHelper,
) *TestHelper {
return &TestHelper{
linkerd: linkerd,
+ version: version,
namespace: namespace,
upgradeFromVersion: upgradeFromVersion,
helm: helm{
@@ -91,6 +95,8 @@ func NewGenericTestHelper(
clusterDomain: clusterDomain,
externalIssuer: externalIssuer,
uninstall: uninstall,
+ httpClient: httpClient,
+ KubernetesHelper: kubernetesHelper,
}
}
