Documentation ¶
Index ¶
Constants ¶
const ( ReasonAvailable string = "Available" ReasonCreating string = "Creating" ReasonDeleting string = "Deleting" )
Reasons a resource is or is not ready.
Variables ¶
This section is empty.
Functions ¶
func Available ¶
Available returns a condition that indicates the resource is currently observed to be available for use.
func Creating ¶
Creating returns a condition that indicates the resource is currently being created.
func Deleting ¶
Deleting returns a condition that indicates the resource is currently being deleted.
func Unavailable ¶
Unavailable returns a condition that indicates the resource is not currently available for use. Unavailable should be set only when Crossplane expects the resource to be available but knows it is not, for example because its API reports it is unhealthy.
Types ¶
type Conditioned ¶
type Conditioned struct { // Conditions of the resource. // +optional Conditions []metav1.Condition `json:"conditions,omitempty"` }
A Conditioned reflects the observed status of a resource. Only one condition of each type may exist.
func (*Conditioned) DeepCopy ¶
func (in *Conditioned) DeepCopy() *Conditioned
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Conditioned.
func (*Conditioned) DeepCopyInto ¶
func (in *Conditioned) DeepCopyInto(out *Conditioned)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Conditioned) GetCondition ¶
func (s *Conditioned) GetCondition(ct string) metav1.Condition
GetCondition returns the condition for the given ConditionType if exists, otherwise returns nil
func (*Conditioned) SetConditions ¶
func (s *Conditioned) SetConditions(c ...metav1.Condition)
SetConditions sets the supplied conditions, replacing any existing conditions of the same type. This is a no-op if all supplied conditions are identical, ignoring the last transition time, to those already set.