Documentation ¶
Index ¶
- func Run(t *testing.T, dir, command string, args ...string)
- func ShouldRunGCPOnlyTests() bool
- type NSKubernetesClient
- func (k *NSKubernetesClient) GetDeployment(depName string) *appsv1.Deployment
- func (k *NSKubernetesClient) Pods() core_v1.PodInterface
- func (k *NSKubernetesClient) Secrets() core_v1.SecretInterface
- func (k *NSKubernetesClient) WaitForDeploymentsToStabilize(depNames ...string)
- func (k *NSKubernetesClient) WaitForPodsInPhase(expectedPhase v1.PodPhase, podNames ...string)
- func (k *NSKubernetesClient) WaitForPodsReady(podNames ...string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ShouldRunGCPOnlyTests ¶ added in v0.32.0
func ShouldRunGCPOnlyTests() bool
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 SetupNamespace ¶
func SetupNamespace(t *testing.T) (*v1.Namespace, *NSKubernetesClient, func())
SetupNamespace creates a Kubernetes namespace to run a test.
func (*NSKubernetesClient) GetDeployment ¶ added in v0.25.0
func (k *NSKubernetesClient) GetDeployment(depName string) *appsv1.Deployment
GetDeployment gets a deployment by name.
func (*NSKubernetesClient) Pods ¶ added in v0.38.0
func (k *NSKubernetesClient) Pods() core_v1.PodInterface
func (*NSKubernetesClient) Secrets ¶ added in v0.38.0
func (k *NSKubernetesClient) Secrets() core_v1.SecretInterface
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)
WaitForPodsReady waits for a list of pods to become ready.
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.