Documentation ¶
Index ¶
- func DeleteNamespace(c client.Client, namespace string) error
- func EnsureNamespace(c client.Client, namespace string) error
- func GetLogOfPod(rest *rest.RESTClient, namespace, name string, ...) error
- func WaitForController(c client.Client, namespace, name string, replica int32, ...) error
- func WaitForDeletion(dynclient client.Client, obj client.Object, ...) error
- func WaitForJobFail(c client.Client, namespace, name string, retryInterval, timeout time.Duration) error
- func WaitForJobSucceed(c client.Client, namespace, name string, retryInterval, timeout time.Duration) error
- type AddToSchemeFunc
- type CleanupOptions
- type Scanner
- type TestCtx
- func (ctx *TestCtx) AddCleanupFn(fn cleanupFn)
- func (ctx *TestCtx) Cleanup(option *CleanupOptions)
- func (ctx *TestCtx) CreateFromYAML(yamlFile []byte, skipIfExists bool) error
- func (ctx *TestCtx) GetID() string
- func (t *TestCtx) Setup(yamlPath string, crdPath string, schemes ...AddToSchemeFunc) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLogOfPod ¶
func GetLogOfPod(rest *rest.RESTClient, namespace, name string, logOptions *corev1.PodLogOptions, out io.Writer) error
func WaitForController ¶
func WaitForDeletion ¶
func WaitForJobFail ¶
Types ¶
type AddToSchemeFunc ¶
type CleanupOptions ¶
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
Scanner scans a yaml manifest file for manifest tokens delimited by "---". See bufio.Scanner for semantics.
func NewYAMLScanner ¶
type TestCtx ¶
type TestCtx struct { Client client.Client ID string Namespace string // contains filtered or unexported fields }
func (*TestCtx) AddCleanupFn ¶
func (ctx *TestCtx) AddCleanupFn(fn cleanupFn)
func (*TestCtx) Cleanup ¶
func (ctx *TestCtx) Cleanup(option *CleanupOptions)
func (*TestCtx) CreateFromYAML ¶
Click to show internal directories.
Click to hide internal directories.