readinesschecks

package
v0.100.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomReadinessCheckConfiguration

type CustomReadinessCheckConfiguration struct {
	// Name is the name of the ReadinessCheck
	Name string `json:"name"`
	// Disabled deactivates this custom ReadinessCheck
	// +optional
	Disabled bool `json:"disabled,omitempty"`
	// Resource is the resource for which the readiness check should be applied, used for single resources that can be identified by namespace and name
	// +optional
	Resource []lsv1alpha1.TypedObjectReference `json:"resourceSelector,omitempty"`
	// Labels are the labels used to identify multiple resources that can be identified by a unique set of labels
	// +optional
	LabelSelector *LabelSelectorSpec `json:"labelSelector,omitempty"`
	// Requirements is the actual readiness check which compares an object's property to a value
	Requirements []RequirementSpec `json:"requirements"`
}

CustomReadinessCheckConfiguration contains the configuration for a custom readiness check

func (*CustomReadinessCheckConfiguration) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomReadinessCheckConfiguration.

func (*CustomReadinessCheckConfiguration) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type LabelSelectorSpec

type LabelSelectorSpec struct {
	// APIVersion is the API version of the object to be selected by labels
	APIVersion string `json:"apiVersion"`
	// Kind is the Kind of the object to be selected by labels
	Kind string `json:"kind"`
	// Labels are the labels used to identify multiple resources of the given kind
	Labels map[string]string `json:"matchLabels"`
}

LabelSelectorSpec contains paramters used to select objects by their labels

func (*LabelSelectorSpec) DeepCopy

func (in *LabelSelectorSpec) DeepCopy() *LabelSelectorSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LabelSelectorSpec.

func (*LabelSelectorSpec) DeepCopyInto

func (in *LabelSelectorSpec) DeepCopyInto(out *LabelSelectorSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ReadinessCheckConfiguration

type ReadinessCheckConfiguration struct {
	// DisableDefault allows to disable the default readiness checks.
	// +optional
	DisableDefault bool `json:"disableDefault,omitempty"`
	// CustomReadinessChecks is a set of custom readiness check configurations
	// +optional
	CustomReadinessChecks []CustomReadinessCheckConfiguration `json:"custom,omitempty"`
}

ReadinessCheckConfiguration contains the configuration for readiness checks.

func (*ReadinessCheckConfiguration) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReadinessCheckConfiguration.

func (*ReadinessCheckConfiguration) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type RequirementSpec

type RequirementSpec struct {
	// JsonPath is the path of the field of the Kubernetes object to be checked (without braces)
	JsonPath string `json:"jsonPath"`
	// Operator is the operator that should be used for the check
	// can be any of these Kubernetes selection operators:
	// DoesNotExist, Exists, Equals, DoubleEquals, NotEquals, In, NotIn
	Operator selection.Operator `json:"operator"`
	// In huge majority of cases we have at most one value here.
	// It is generally faster to operate on a single-element slice
	// than on a single-element map, so we have a slice here.
	// +optional
	Value []runtime.RawExtension `json:"values,omitempty"`
}

RequirementSpec contains the requirements an object must meet to pass the custom readiness check

func (*RequirementSpec) DeepCopy

func (in *RequirementSpec) DeepCopy() *RequirementSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RequirementSpec.

func (*RequirementSpec) DeepCopyInto

func (in *RequirementSpec) DeepCopyInto(out *RequirementSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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