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"`
// TargetName specifies the target from which the objects for the readiness check are read.
// The value typically comes from a target import parameter, for example: {{.imports.myCluster.metadata.name}}.
// TargetName is optional; the default is the target specified in the deployitem.
// +optional
TargetName *string `json:"targetName,omitempty"`
}
CustomReadinessCheckConfiguration contains the configuration for a custom readiness check
func (*CustomReadinessCheckConfiguration) DeepCopy ¶
func (in *CustomReadinessCheckConfiguration) DeepCopy() *CustomReadinessCheckConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomReadinessCheckConfiguration.
func (*CustomReadinessCheckConfiguration) DeepCopyInto ¶
func (in *CustomReadinessCheckConfiguration) DeepCopyInto(out *CustomReadinessCheckConfiguration)
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 ¶
func (in *ReadinessCheckConfiguration) DeepCopy() *ReadinessCheckConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReadinessCheckConfiguration.
func (*ReadinessCheckConfiguration) DeepCopyInto ¶
func (in *ReadinessCheckConfiguration) DeepCopyInto(out *ReadinessCheckConfiguration)
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.