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/framework/framework.go
+13-1Lines changed: 13 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,7 @@ import (
20
20
"flag"
21
21
"fmt"
22
22
"os"
23
+
"strconv"
23
24
"strings"
24
25
"time"
25
26
@@ -51,6 +52,7 @@ var (
51
52
kubeconfigstring// path to kubeconfig file
52
53
deleteNamespacebool// whether or not to delete test namespaces
53
54
cloudConfigFilestring// path to cloud provider config file
55
+
nodePortTestbool// whether or not to test the connectivity of node ports.
54
56
ccmSeclistIDstring// The ocid of the loadbalancer subnet seclist. Optional.
55
57
k8sSeclistIDstring// The ocid of the k8s worker subnet seclist. Optional.
56
58
)
@@ -59,6 +61,7 @@ func init() {
59
61
flag.StringVar(&kubeconfig, "kubeconfig", "", "Path to Kubeconfig file with authorization and master location information.")
60
62
flag.BoolVar(&deleteNamespace, "delete-namespace", true, "If true tests will delete namespace after completion. It is only designed to make debugging easier, DO NOT turn it off by default.")
61
63
flag.StringVar(&cloudConfigFile, "cloud-config", "", "The path to the cloud provider configuration file. Empty string for no configuration file.")
64
+
flag.BoolVar(&nodePortTest, "nodeport-test", false, "If true test will include 'nodePort' connectectivity tests.")
62
65
flag.StringVar(&ccmSeclistID, "ccm-seclist-id", "", "The ocid of the loadbalancer subnet seclist. Enables additional seclist rule tests. If specified the 'k8s-seclist-id parameter' is also required.")
63
66
flag.StringVar(&k8sSeclistID, "k8s-seclist-id", "", "The ocid of the k8s worker subnet seclist. Enables additional seclist rule tests. If specified the 'ccm-seclist-id parameter' is also required.")
64
67
}
@@ -75,6 +78,7 @@ type Framework struct {
75
78
76
79
CloudProviderConfig*oci.Config// If specified, the CloudProviderConfig. This provides information on the configuration of the test cluster.
77
80
Client client.Interface// An OCI client for checking the state of any provisioned OCI infrastructure during testing.
81
+
NodePortTestbool// An optional configuration for E2E testing. If set to true, then will run additional E2E nodePort connectivity checks during testing.
78
82
CCMSecListIDstring// An optional configuration for E2E testing. If present can be used to run additional checks against seclist during testing.
79
83
K8SSecListIDstring// An optional configuration for E2E testing. If present can be used to run additional checks against seclist during testing.
0 commit comments