Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateKubeConfigFile ¶
func CreateKubeConfigFile(t *testing.T, contextName, configPath, namespace, clusterName, server, caCertificate, token string)
CreateKubeConfigFile creates a KUBECONFIG file with a given API configuration. This will fail a test if there is an error in creating the config file.
func CreateKubeConfigFileE ¶
func CreateKubeConfigFileE(contextName, configPath, namespace, clusterName, server, caCertificate, token string) error
CreateKubeConfigFileE creates a KUBECONFIG file with a given API configuration.
func GetPodBySelector ¶
GetPodBySelector returns Pod object specified by selector string. The getter return only the first matched pod and always waits till pod is available.
func GetServiceBySelector ¶
func GetServiceBySelector(t *testing.T, options *k8s.KubectlOptions, selector string) corev1.Service
GetServiceBySelector returns a kubernetes service matched by the given selector.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.