probe

package
v0.0.0-...-78ffc1b Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConditionProbe

type ConditionProbe struct {
	Type, Status string
}

Checks if the objects condition is set and in a certain status.

func (*ConditionProbe) Probe

func (cp *ConditionProbe) Probe(obj *unstructured.Unstructured) (success bool, message string)

type CurrentGenerationProbe

type CurrentGenerationProbe struct {
	Interface
}

CurrentGenerationProbe ensures that the objects status is up to date with the objects generation. Requires the probed object to have a .status.observedGeneration property.

func (*CurrentGenerationProbe) Probe

func (cg *CurrentGenerationProbe) Probe(obj *unstructured.Unstructured) (success bool, message string)

type FieldsEqualProbe

type FieldsEqualProbe struct {
	FieldA, FieldB string
}

Checks if the values of the fields under the given json paths are equal.

func (*FieldsEqualProbe) Probe

func (fe *FieldsEqualProbe) Probe(obj *unstructured.Unstructured) (success bool, message string)

type Interface

type Interface interface {
	Probe(obj *unstructured.Unstructured) (success bool, message string)
}

func Parse

func Parse(probeSpecs []coordinationv1alpha1.Probe) Interface

type KindSelector

type KindSelector struct {
	Interface
	schema.GroupKind
}

KindSelector wraps a Probe object and only executes the probe when the probed object is of the right Group and Kind.

func (*KindSelector) Probe

func (kp *KindSelector) Probe(obj *unstructured.Unstructured) (success bool, message string)

type ProbeList

type ProbeList []Interface

func (ProbeList) Probe

func (p ProbeList) Probe(obj *unstructured.Unstructured) (success bool, message string)

Jump to

Keyboard shortcuts

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