You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/e2e/e2e_suite_test.go
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,8 @@ import (
32
32
. "github.com/onsi/gomega"
33
33
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
34
34
"k8s.io/apimachinery/pkg/runtime"
35
+
"k8s.io/component-base/logs"
36
+
logsv1 "k8s.io/component-base/logs/api/v1"
35
37
"k8s.io/klog/v2"
36
38
ctrl "sigs.k8s.io/controller-runtime"
37
39
@@ -63,6 +65,8 @@ var (
63
65
64
66
// skipCleanup prevents cleanup of test resources e.g. for debug purposes.
65
67
skipCleanupbool
68
+
69
+
logOptions=logs.NewOptions()
66
70
)
67
71
68
72
// Test suite global vars.
@@ -94,11 +98,19 @@ func init() {
94
98
flag.BoolVar(&skipCleanup, "e2e.skip-resource-cleanup", false, "if true, the resource cleanup after tests will be skipped")
95
99
flag.StringVar(&clusterctlConfig, "e2e.clusterctl-config", "", "file which tests will use as a clusterctl config. If it is not set, a local clusterctl repository (including a clusterctl config) will be created automatically.")
96
100
flag.BoolVar(&useExistingCluster, "e2e.use-existing-cluster", false, "if true, the test uses the current cluster instead of creating a new one (default discovery rules apply)")
0 commit comments