Documentation
¶
Overview ¶
Package probing contains declarative status probing implementations for various different Kubernetes objects.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrCELInvalidEvaluationType = errors.New("cel expression must evaluate to a bool")
ErrCELInvalidEvaluationType is raised when a CEL expression does not evaluate to a boolean.
Functions ¶
This section is empty.
Types ¶
type And ¶
type And []Prober
And combines multiple Prober, only passing if all given Probers succeed. Messages of failing Probers will be joined together.
type CELProbe ��
CELProbe uses the common expression language for probing.
func NewCELProbe ¶
NewCELProbe creates a new CEL (Common Expression Language) Probe. A CEL probe runs a CEL expression against the target object that needs to evaluate to a bool.
type ConditionProbe ¶
type ConditionProbe struct {
Type, Status string
}
ConditionProbe checks if the object's condition is set and in a certain status.
type FieldsEqualProbe ¶
type FieldsEqualProbe struct {
FieldA, FieldB string
}
FieldsEqualProbe checks if the values of the fields under the given json paths are equal.
type GroupKindSelector ¶
GroupKindSelector wraps a Probe object and only executes the probe when the probed object is of the right Group and Kind. Objects not matching the slector are considered to pass the probe.
type LabelSelector ¶
LabelSelector wraps a Probe object and only executes the probe when the probed object is matching the given label selector. Objects not matching the slector are considered to pass the probe.
type ObservedGenerationProbe ¶
type ObservedGenerationProbe struct {
Prober
}
ObservedGenerationProbe wraps the given Prober and ensures that .status.observedGeneration is equal to .metadata.generation, before running the given probe. If the probed object does not contain the .status.observedGeneration field, the given prober is executed directly.