Skip to content

Commit

Permalink
Merge pull request #2802 from chrischdi/vcsim-disable-logcollector
Browse files Browse the repository at this point in the history
🌱 e2e: disable log collector for vcsim testmode
  • Loading branch information
k8s-ci-robot authored Mar 11, 2024
2 parents 6571eb9 + fd25446 commit 26932c8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/e2e/e2e_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,13 @@ var _ = SynchronizedBeforeSuite(func() []byte {
e2eConfig, err = vsphereframework.LoadE2EConfig(ctx, configPath, configOverridesPath, testTarget, testMode)
Expect(err).NotTo(HaveOccurred())

bootstrapClusterProxy = framework.NewClusterProxy("bootstrap", kubeconfigPath, initScheme(), framework.WithMachineLogCollector(vspherelog.MachineLogCollector{}))
clusterProxyOptions := []framework.Option{}
// vspherelog.MachineLogCollector tries to ssh to the machines to collect logs.
// This does not work when using vcsim because there are no real machines running ssh.
if testTarget != VCSimTestTarget {
clusterProxyOptions = append(clusterProxyOptions, framework.WithMachineLogCollector(vspherelog.MachineLogCollector{}))
}
bootstrapClusterProxy = framework.NewClusterProxy("bootstrap", kubeconfigPath, initScheme(), clusterProxyOptions...)

ipClaimLabels := map[string]string{}
for _, s := range strings.Split(ipClaimLabelsRaw, ";") {
Expand Down

0 comments on commit 26932c8

Please sign in to comment.