Documentation ¶
Index ¶
- func GetClient() (kubernetes.Interface, error)
- func IsRetryableAPIError(err error) bool
- func Retry(t *testing.T, callback func() error, d time.Duration, attempts int) (err error)
- func StartPods(c kubernetes.Interface, namespace string, pod v1.Pod, waitForRunning bool) error
- func WaitForBusyboxRunning(t *testing.T, namespace string) error
- func WaitForDNSRunning(t *testing.T) error
- func WaitForDashboardRunning(t *testing.T) error
- func WaitForPodsWithLabelRunning(c kubernetes.Interface, ns string, label labels.Selector) error
- func WaitForRCToStabilize(t *testing.T, c kubernetes.Interface, ns, name string, timeout time.Duration) error
- func WaitForService(t *testing.T, c kubernetes.Interface, namespace, name string, exist bool, ...) error
- func WaitForServiceEndpointsNum(t *testing.T, c kubernetes.Interface, namespace, serviceName string, ...) error
- type KubectlRunner
- type MinikubeRunner
- func (m *MinikubeRunner) CheckStatus(desired string)
- func (m *MinikubeRunner) CheckStatusNoFail(desired string) error
- func (m *MinikubeRunner) CombinedOutput(cmd string) (string, error)
- func (m *MinikubeRunner) Copy(f assets.CopyableFile) error
- func (m *MinikubeRunner) EnsureRunning()
- func (m *MinikubeRunner) GetStatus() string
- func (m *MinikubeRunner) Remove(f assets.CopyableFile) error
- func (m *MinikubeRunner) Run(cmd string) error
- func (m *MinikubeRunner) RunCommand(command string, checkError bool) string
- func (m *MinikubeRunner) RunDaemon(command string) *exec.Cmd
- func (m *MinikubeRunner) SSH(command string) (string, error)
- func (m *MinikubeRunner) SetEnvFromEnvCmdOutput(dockerEnvVars string) error
- func (m *MinikubeRunner) Start()
- type PodStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClient ¶ added in v0.22.0
func GetClient() (kubernetes.Interface, error)
func IsRetryableAPIError ¶ added in v0.22.0
func WaitForBusyboxRunning ¶ added in v0.22.0
func WaitForDNSRunning ¶ added in v0.22.0
func WaitForDashboardRunning ¶ added in v0.22.0
func WaitForPodsWithLabelRunning ¶ added in v0.22.0
Wait up to 10 minutes for all matching pods to become Running and at least one matching pod exists.
func WaitForRCToStabilize ¶ added in v0.22.0
func WaitForRCToStabilize(t *testing.T, c kubernetes.Interface, ns, name string, timeout time.Duration) error
WaitForRCToStabilize waits till the RC has a matching generation/replica count between spec and status.
func WaitForService ¶ added in v0.22.0
func WaitForService(t *testing.T, c kubernetes.Interface, namespace, name string, exist bool, interval, timeout time.Duration) error
WaitForService waits until the service appears (exist == true), or disappears (exist == false)
func WaitForServiceEndpointsNum ¶ added in v0.22.0
func WaitForServiceEndpointsNum(t *testing.T, c kubernetes.Interface, namespace, serviceName string, expectNum int, interval, timeout time.Duration) error
WaitForServiceEndpointsNum waits until the amount of endpoints that implement service to expectNum.
Types ¶
type KubectlRunner ¶
func NewKubectlRunner ¶
func NewKubectlRunner(t *testing.T) *KubectlRunner
func (*KubectlRunner) CreateRandomNamespace ¶
func (k *KubectlRunner) CreateRandomNamespace() string
func (*KubectlRunner) DeleteNamespace ¶
func (k *KubectlRunner) DeleteNamespace(namespace string) error
func (*KubectlRunner) RunCommand ¶
func (k *KubectlRunner) RunCommand(args []string) (stdout []byte, err error)
func (*KubectlRunner) RunCommandParseOutput ¶
func (k *KubectlRunner) RunCommandParseOutput(args []string, outputObj interface{}) error
type MinikubeRunner ¶
func (*MinikubeRunner) CheckStatus ¶
func (m *MinikubeRunner) CheckStatus(desired string)
func (*MinikubeRunner) CheckStatusNoFail ¶ added in v0.17.0
func (m *MinikubeRunner) CheckStatusNoFail(desired string) error
func (*MinikubeRunner) CombinedOutput ¶ added in v0.22.0
func (m *MinikubeRunner) CombinedOutput(cmd string) (string, error)
func (*MinikubeRunner) Copy ¶ added in v0.22.0
func (m *MinikubeRunner) Copy(f assets.CopyableFile) error
func (*MinikubeRunner) EnsureRunning ¶
func (m *MinikubeRunner) EnsureRunning()
func (*MinikubeRunner) GetStatus ¶
func (m *MinikubeRunner) GetStatus() string
func (*MinikubeRunner) Remove ¶ added in v0.22.0
func (m *MinikubeRunner) Remove(f assets.CopyableFile) error
func (*MinikubeRunner) Run ¶ added in v0.22.0
func (m *MinikubeRunner) Run(cmd string) error
func (*MinikubeRunner) RunCommand ¶
func (m *MinikubeRunner) RunCommand(command string, checkError bool) string
func (*MinikubeRunner) RunDaemon ¶ added in v0.18.0
func (m *MinikubeRunner) RunDaemon(command string) *exec.Cmd
func (*MinikubeRunner) SetEnvFromEnvCmdOutput ¶
func (m *MinikubeRunner) SetEnvFromEnvCmdOutput(dockerEnvVars string) error
func (*MinikubeRunner) Start ¶
func (m *MinikubeRunner) Start()
Click to show internal directories.
Click to hide internal directories.