example

package
v0.0.0-...-b3ac824 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPodsSuiteProvider

func NewPodsSuiteProvider() strategy.StrategyProvider

func NewTestCase

func NewTestCase(config map[string]string) interface{}

func NewTestWorker

func NewTestWorker(config map[string]string) interface{}

Types

type PodAnnotationTestCase

type PodAnnotationTestCase struct {
	PodName            string
	ExpectedAnnotation string
	ExpectedValue      string
}

PodAnnotationTestCase asserts that a pod has an annotation with an expected value

func (*PodAnnotationTestCase) Run

func (tc *PodAnnotationTestCase) Run(c client.Client, namespace string) error

func (*PodAnnotationTestCase) ShouldRun

func (tc *PodAnnotationTestCase) ShouldRun(s interface{}) bool

type PodAnnotationTestWorker

type PodAnnotationTestWorker struct {
	PodName    string
	Annotation string
	Value      string
}

func (*PodAnnotationTestWorker) Run

func (*PodAnnotationTestWorker) ShouldRun

func (tw *PodAnnotationTestWorker) ShouldRun(s interface{}) bool

type PodStatus

type PodStatus string
var PodAnnotated PodStatus = "Annotated"
var PodNotReady PodStatus = "NotReady"
var PodReady PodStatus = "Ready"
var PodTested PodStatus = "Tested"

type PodSuiteState

type PodSuiteState map[string]PodStatus

PodSuiteState represent the current testing state as an association between pod names -> whether they're ready or not

type PodsSuiteReconciler

type PodsSuiteReconciler struct{}

PodsSuiteReconciler reconciles the testing state with the pods in the namespace

func (*PodsSuiteReconciler) ParseState

func (r *PodsSuiteReconciler) ParseState(state string) (interface{}, error)

func (*PodsSuiteReconciler) Reconcile

func (r *PodsSuiteReconciler) Reconcile(c client.Client, namespace string, s interface{}) (interface{}, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL