k8s

package
v0.1.1-0...-ffbefaf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2021 License: Unlicense Imports: 11 Imported by: 0

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

func GetPodBySelector(t *testing.T, options *k8s.KubectlOptions, selector string) corev1.Pod

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL