Documentation
¶
Overview ¶
Package tester contains the logic to access the test context and the cluster included
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterContext ¶
type ClusterContext struct { Config *rest.Config NativeClient *kubernetes.Clientset ControllerClient client.Client Cluster liqov1beta1.ClusterID KubeconfigPath string HomeCluster bool Role liqov1beta1.RoleType NumPeeredConsumers int NumPeeredProviders int }
ClusterContext encapsulate all information and objects used to access a test cluster.
func GetConsumers ¶
func GetConsumers(clusters []ClusterContext) []ClusterContext
GetConsumers returns a slice of clusters having role Consumer.
func GetProviders ¶
func GetProviders(clusters []ClusterContext) []ClusterContext
GetProviders returns a slice of clusters having role Provider.
type Tester ¶
type Tester struct { Clusters []ClusterContext Namespace string // ClustersNumber represents the number of available clusters ClustersNumber int OverlappingCIDRs bool LiqoctlPath string Cni string Infrastructure string }
Tester is used to encapsulate the context where the test is executed.
func GetTesterUninstall ¶ added in v0.3.1
GetTesterUninstall returns a Tester instance that do not interact with liqo resources.
Click to show internal directories.
Click to hide internal directories.