Skip to content

Commit fdd8f15

Browse files
committed
tkg system namespace fix
1 parent 52cd99c commit fdd8f15

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

tests/e2e/constants/env_constants.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,4 +213,5 @@ const (
213213
EnvVmknic4Vsan = "VMKNIC_FOR_VSAN"
214214
EnvAccessMode = "ACCESS_MODE"
215215
EnvVpToCsi = "VCPTOCSI"
216+
EnvVsphereTKGSystemNamespace = "VSPHERE_TKG_SYSTEM_NAMESPACE"
216217
)

tests/e2e/constants/kubernetes.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ const (
9999
VsphereCloudProviderConfiguration = "vsphere-cloud-provider.conf"
100100
VsphereControllerManager = "vmware-system-tkg-controller-manager"
101101
VSphereCSIConf = "csi-vsphere.conf"
102-
VsphereTKGSystemNamespace = "svc-tkg-domain-c10"
103102
WcpServiceName = "wcp"
104103
VmcWcpHost = "10.2.224.24" //This is the LB IP of VMC WCP and its constant
105104
DevopsTKG = "test-cluster-e2e-script"

tests/e2e/gc_block_volume_expansion.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1564,7 +1564,7 @@ var _ = ginkgo.Describe("[csi-guest] Volume Expansion Test", func() {
15641564
"exec",
15651565
pod.Name,
15661566
"--namespace=" + namespace,
1567-
"powershell.exe",
1567+
"-- powershell.exe",
15681568
"$out = New-Object byte[] 536870912; (New-Object Random).NextBytes($out); " +
15691569
"[System.IO.File]::WriteAllBytes('/mnt/volume1/testdata2.txt', $out)",
15701570
}

tests/e2e/volume_health_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ var _ = ginkgo.Describe("Volume health check", func() {
5757
isVsanHealthServiceStopped bool
5858
isSPSServiceStopped bool
5959
csiNamespace string
60+
vsphereTKGSystemNamespace string
6061
)
6162

6263
ginkgo.BeforeEach(func() {
@@ -70,6 +71,7 @@ var _ = ginkgo.Describe("Volume health check", func() {
7071
csiNamespace = GetAndExpectStringEnvVar(envCSINamespace)
7172
nodeList, err := fnodes.GetReadySchedulableNodes(ctx, f.ClientSet)
7273
datastoreURL = GetAndExpectStringEnvVar(envSharedDatastoreURL)
74+
vsphereTKGSystemNamespace = GetAndExpectStringEnvVar(EnvVsphereTKGSystemNamespace)
7375
framework.ExpectNoError(err, "Unable to find ready and schedulable Node")
7476
if guestCluster {
7577
svcClient, svNamespace := getSvcClientAndNamespace()
@@ -2123,7 +2125,6 @@ var _ = ginkgo.Describe("Volume health check", func() {
21232125
gcClient, err = createKubernetesClientFromConfig(k8senv)
21242126
gomega.Expect(err).NotTo(gomega.HaveOccurred())
21252127
}
2126-
21272128
tkgReplicaDeployment, err := svcClient.AppsV1().Deployments(vsphereTKGSystemNamespace).Get(ctx,
21282129
vsphereControllerManager, metav1.GetOptions{})
21292130
gomega.Expect(err).NotTo(gomega.HaveOccurred())

0 commit comments

Comments
 (0)