apis

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ReasonAvailable   string = "Available"
	ReasonUnavailable string = "Unavailable"
	ReasonCreating    string = "Creating"
	ReasonDeleting    string = "Deleting"
)

Reasons a resource is or is not ready.

Variables

This section is empty.

Functions

func Available

func Available() metav1.Condition

Available returns a condition that indicates the resource is currently observed to be available for use.

func Creating

func Creating() metav1.Condition

Creating returns a condition that indicates the resource is currently being created.

func Deleting

func Deleting() metav1.Condition

Deleting returns a condition that indicates the resource is currently being deleted.

func Unavailable

func Unavailable() metav1.Condition

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.

Jump to

Keyboard shortcuts

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