expectations

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 8 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ExpectationTimeout time.Duration

Functions

This section is empty.

Types

type ResourceVersionExpectation added in v0.6.1

type ResourceVersionExpectation interface {
	Expect(obj metav1.Object)
	Observe(obj metav1.Object)
	IsSatisfied(obj metav1.Object) (bool, time.Duration)
	Delete(obj metav1.Object)
}

func NewResourceVersionExpectation added in v0.6.1

func NewResourceVersionExpectation() ResourceVersionExpectation

type ScaleAction

type ScaleAction string

ScaleAction is the action of scale, like create and delete.

const (
	// Create action
	Create ScaleAction = "create"
	// Delete action
	Delete ScaleAction = "delete"
)

type ScaleExpectations

type ScaleExpectations interface {
	ExpectScale(controllerKey string, action ScaleAction, name string)
	ObserveScale(controllerKey string, action ScaleAction, name string)
	SatisfiedExpectations(controllerKey string) (bool, time.Duration, map[ScaleAction][]string)
	DeleteExpectations(controllerKey string)
	GetExpectations(controllerKey string) map[ScaleAction]sets.String
}

ScaleExpectations is an interface that allows users to set and wait on expectations of pods scale.

func NewScaleExpectations

func NewScaleExpectations() ScaleExpectations

NewScaleExpectations returns a common ScaleExpectations.

type UpdateExpectations

type UpdateExpectations interface {
	ExpectUpdated(controllerKey, revision string, obj metav1.Object)
	ObserveUpdated(controllerKey, revision string, obj metav1.Object)
	DeleteObject(controllerKey string, obj metav1.Object)
	SatisfiedExpectations(controllerKey, revision string) (bool, time.Duration, []string)
	DeleteExpectations(controllerKey string)
}

UpdateExpectations is an interface that allows users to set and wait on expectations of pods update.

func NewUpdateExpectations

func NewUpdateExpectations(revisionAdapter revisionadapter.Interface) UpdateExpectations

NewUpdateExpectations returns a common UpdateExpectations.

Jump to

Keyboard shortcuts

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