Documentation ¶
Index ¶
- func NewClientFromKubeconfig(path string) (kubernetes.Interface, error)
- func PodsAreGone(client kubernetes.Interface, labels string) func(*ScenarioContext) error
- func PodsAreReady(client kubernetes.Interface, replicas int, labels string) func(*ScenarioContext) error
- func ServiceIsReady(client kubernetes.Interface, service string) func(*ScenarioContext) error
- type Action
- func Actions(ss ...Action) Action
- func ClientFails(client kubernetes.Interface, command string, opts *RunOptions) Action
- func ClientSucceeds(client kubernetes.Interface, command string, opts *RunOptions) Action
- func CreatedManifests(client kubernetes.Interface, paths ...string) Action
- func RunFails(client kubernetes.Interface, image string, name string, command []string, ...) Action
- func RunSucceeds(client kubernetes.Interface, image string, name string, command []string, ...) Action
- type CleanUp
- type RunOptions
- type Scenario
- type ScenarioContext
- type TestSuite
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClientFromKubeconfig ¶ added in v0.13.0
func NewClientFromKubeconfig(path string) (kubernetes.Interface, error)
func PodsAreGone ¶ added in v0.9.0
func PodsAreGone(client kubernetes.Interface, labels string) func(*ScenarioContext) error
PodsAreGone waits for pods being gone for the given labels. Returns a func directly (not Setup or Conditions) as it can be used in Given and When steps
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 Action ¶ added in v0.13.0
type Action func(ctx *ScenarioContext) error
func ClientFails ¶ added in v0.13.0
func ClientFails(client kubernetes.Interface, command string, opts *RunOptions) Action
func ClientSucceeds ¶ added in v0.13.0
func ClientSucceeds(client kubernetes.Interface, command string, opts *RunOptions) Action
func CreatedManifests ¶
func CreatedManifests(client kubernetes.Interface, paths ...string) Action
func RunFails ¶
func RunFails(client kubernetes.Interface, image string, name string, command []string, opts *RunOptions) Action
func RunSucceeds ¶
func RunSucceeds(client kubernetes.Interface, image string, name string, command []string, opts *RunOptions) Action
type RunOptions ¶
type Scenario ¶
type ScenarioContext ¶
func (*ScenarioContext) AddCleanUp ¶ added in v0.13.0
func (ctx *ScenarioContext) AddCleanUp(f CleanUp)
Click to show internal directories.
Click to hide internal directories.