Documentation ¶
Index ¶
- func CreateNamespace(client kubernetes.Interface, name string) error
- func DeleteNamespace(client kubernetes.Interface, name string) error
- func PodsAreReady(client kubernetes.Interface, replicas int, labels string) func(*ScenarioContext) error
- func ServiceIsReady(client kubernetes.Interface, service string) func(*ScenarioContext) error
- type Check
- type Condition
- type Finalizer
- type RunOptions
- type RunOpts
- type Scenario
- type ScenarioContext
- type Setup
- type Suite
- type TestSuite
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNamespace ¶
func CreateNamespace(client kubernetes.Interface, name string) error
func DeleteNamespace ¶
func DeleteNamespace(client kubernetes.Interface, name string) error
func PodsAreReady ¶
func PodsAreReady(client kubernetes.Interface, replicas int, labels string) func(*ScenarioContext) error
PodsAreReady waits for a number if replicas matching the given labels to be ready. Returns a func directly (not Setup or Conditions) as it can be used in Given and When steps
func ServiceIsReady ¶
func ServiceIsReady(client kubernetes.Interface, service string) func(*ScenarioContext) error
ServiceIsReady waits for given service to exist and have at least 1 endpoint. Returns a func directly (not Setup or Conditions) as it can be used in Given and When steps
Types ¶
type Check ¶
type Check func(ctx *ScenarioContext) error
func RunFails ¶
func RunFails(client kubernetes.Interface, image string, name string, command []string, opts *RunOptions) Check
func RunSucceeds ¶
func RunSucceeds(client kubernetes.Interface, image string, name string, command []string, opts *RunOptions) Check
type RunOptions ¶
type RunOpts ¶
type RunOpts func(ctx *ScenarioContext) *ScenarioContext
func RandomNamespace ¶
func RandomNamespace(client kubernetes.Interface) RunOpts
type Scenario ¶
type ScenarioContext ¶
func (*ScenarioContext) AddFinalizer ¶
func (ctx *ScenarioContext) AddFinalizer(f Finalizer)
type Setup ¶
type Setup func(ctx *ScenarioContext) error
func CreatedManifests ¶
func CreatedManifests(client kubernetes.Interface, paths ...string) Setup
Click to show internal directories.
Click to hide internal directories.