Skip to content

Commit 6bf0e75

Browse files
committed
fix
1 parent 4d051fd commit 6bf0e75

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

lib/k8s/e2e/common/test_common.go

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,21 @@ var (
3333
)
3434

3535
func GetTestEnvConfig(t *testing.T) *environment.Config {
36+
testType := "functional"
37+
product := "k8s_runner"
38+
39+
nsLabels, err := environment.GetRequiredChainLinkNamespaceLabels(product, testType)
40+
require.NoError(t, err, "Error creating required chain.link labels for namespace")
41+
42+
workloadPodLabels, err := environment.GetRequiredChainLinkWorkloadAndPodLabels(product, testType)
43+
require.NoError(t, err, "Error creating required chain.link labels for workloads and pods")
44+
3645
return &environment.Config{
3746
NamespacePrefix: TestEnvType,
38-
Labels: []string{testSelector},
3947
Test: t,
48+
Labels: nsLabels,
49+
WorkloadLabels: workloadPodLabels,
50+
PodLabels: workloadPodLabels,
4051
}
4152
}
4253

0 commit comments

Comments
 (0)