Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Status ¶
type Status struct { // ObservedGeneration is the 'Generation' of the resource that // was last processed by the controller. // +optional ObservedGeneration int64 `json:"observedGeneration,omitempty"` // Conditions the latest available observations of a resource's current state. // +optional // +patchMergeKey=type // +patchStrategy=merge Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"` }
Status is the minimally expected status subresource. +k8s:deepcopy-gen=true
func (*Status) ConditionIsTrue ¶
ConditionIsTrue return true if the condition of specified type has status 'True'
func (*Status) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Status.
func (*Status) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Status) GetCondition ¶
GetCondition fetches the condition of the specified type.
func (*Status) SetCondition ¶
SetCondition sets the newCondition in conditions.
- if the condition of the specified type already exists, all fields of the existing condition are updated to newCondition, LastTransitionTime is set to now if the new status differs from the old status
- if a condition of the specified type does not exist, LastTransitionTime is set to now() if unset and newCondition is appended
Click to show internal directories.
Click to hide internal directories.