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 []packagesv1alpha1.Probe) Interface
type KindSelector ¶
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)
Click to show internal directories.
Click to hide internal directories.