Documentation ¶
Index ¶
- Constants
- func MarkIntegrationTest(t *testing.T, testType TestType)
- func Run(t *testing.T, dir, command string, args ...string)
- func SetupDockerClient(t *testing.T) docker.LocalDaemon
- func WaitForLogs(t *testing.T, out io.Reader, firstMessage string, moreMessages ...string)
- type NSKubernetesClient
- func (k *NSKubernetesClient) CreateSecretFrom(ns, name string)
- func (k *NSKubernetesClient) DefaultSecrets() corev1.SecretInterface
- func (k *NSKubernetesClient) Deployments() typedappsv1.DeploymentInterface
- func (k *NSKubernetesClient) ExternalIP(serviceName string) string
- func (k *NSKubernetesClient) GetDeployment(depName string) *appsv1.Deployment
- func (k *NSKubernetesClient) GetPod(podName string) *v1.Pod
- func (k *NSKubernetesClient) Pods() corev1.PodInterface
- func (k *NSKubernetesClient) Secrets() corev1.SecretInterface
- func (k *NSKubernetesClient) Services() corev1.ServiceInterface
- func (k *NSKubernetesClient) WaitForDeploymentsToStabilize(depNames ...string)
- func (k *NSKubernetesClient) WaitForPodsInPhase(expectedPhase v1.PodPhase, podNames ...string)
- func (k *NSKubernetesClient) WaitForPodsReady(podNames ...string)
- type TestType
Constants ¶
View Source
const (
InProgress = "In Progress"
)
Variables ¶
This section is empty.
Functions ¶
func MarkIntegrationTest ¶ added in v1.7.1
func SetupDockerClient ¶ added in v1.32.0
func SetupDockerClient(t *testing.T) docker.LocalDaemon
SetupDockerClient creates a client against the local docker daemon
Types ¶
type NSKubernetesClient ¶ added in v0.25.0
type NSKubernetesClient struct {
// contains filtered or unexported fields
}
NSKubernetesClient wraps a Kubernetes Client for a given namespace.
func DefaultNamespace ¶ added in v1.28.1
func DefaultNamespace(t *testing.T) (*v1.Namespace, *NSKubernetesClient)
func SetupNamespace ¶
func SetupNamespace(t *testing.T) (*v1.Namespace, *NSKubernetesClient)
SetupNamespace creates a Kubernetes namespace to run a test.
func (*NSKubernetesClient) CreateSecretFrom ¶ added in v1.1.0
func (k *NSKubernetesClient) CreateSecretFrom(ns, name string)
func (*NSKubernetesClient) DefaultSecrets ¶ added in v1.1.0
func (k *NSKubernetesClient) DefaultSecrets() corev1.SecretInterface
func (*NSKubernetesClient) Deployments ¶ added in v1.1.0
func (k *NSKubernetesClient) Deployments() typedappsv1.DeploymentInterface
func (*NSKubernetesClient) ExternalIP ¶ added in v1.1.0
func (k *NSKubernetesClient) ExternalIP(serviceName string) string
ExternalIP waits for the external IP aof a given service.
func (*NSKubernetesClient) GetDeployment ¶ added in v0.25.0
func (k *NSKubernetesClient) GetDeployment(depName string) *appsv1.Deployment
GetDeployment gets a deployment by name.
func (*NSKubernetesClient) GetPod ¶ added in v1.7.1
func (k *NSKubernetesClient) GetPod(podName string) *v1.Pod
GetDeployment gets a deployment by name.
func (*NSKubernetesClient) Pods ¶ added in v0.38.0
func (k *NSKubernetesClient) Pods() corev1.PodInterface
func (*NSKubernetesClient) Secrets ¶ added in v0.38.0
func (k *NSKubernetesClient) Secrets() corev1.SecretInterface
func (*NSKubernetesClient) Services ¶ added in v1.1.0
func (k *NSKubernetesClient) Services() corev1.ServiceInterface
func (*NSKubernetesClient) WaitForDeploymentsToStabilize ¶ added in v0.25.0
func (k *NSKubernetesClient) WaitForDeploymentsToStabilize(depNames ...string)
WaitForDeploymentsToStabilize waits for a list of deployments to become stable.
func (*NSKubernetesClient) WaitForPodsInPhase ¶ added in v0.38.0
func (k *NSKubernetesClient) WaitForPodsInPhase(expectedPhase v1.PodPhase, podNames ...string)
WaitForPodsInPhase waits for a list of pods to reach the given phase.
func (*NSKubernetesClient) WaitForPodsReady ¶ added in v0.25.0
func (k *NSKubernetesClient) WaitForPodsReady(podNames ...string)
WaitForPodsReady waits for a list of pods to become ready.
Click to show internal directories.
Click to hide internal directories.