Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Client = &ClientSet{}
Client defines the client set that will be used for testing
Functions ¶
func ClearTestClientsHolder ¶
func ClearTestClientsHolder()
Types ¶
type ClientSet ¶
type ClientSet struct { client.Client kubernetes.Interface networkv1client.NetworkingV1Client appsv1client.AppsV1Interface discovery.DiscoveryInterface ptpv1.PtpV1Interface Config *rest.Config OcpClient clientconfigv1.ConfigV1Interface corev1client.CoreV1Interface KubeConfigPath string prometheusClientV1.MonitoringV1Client }
ClientSet provides the struct to talk with relevant API
func GetTestClientSet ¶
GetTestClientSet Overwrites the existing clientholders with a mocked version for unit testing.
Click to show internal directories.
Click to hide internal directories.