status

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 4 Imported by: 7

Documentation

Index

Constants

View Source
const (
	ConditionTypeProgressing          string = "Progressing"
	ConditionTypeReconcile            string = "Reconcile"
	ConditionTypeAvailable            string = "Available"
	ConditionTypeReconcilePVC         string = "ReconcilePVC"
	ConditionTypeReconcileService     string = "ReconcileService"
	ConditionTypeReconcileIngress     string = "ReconcileIngress"
	ConditionTypeReconcileDeployment  string = "ReconcileDeployment"
	ConditionTypeReconcileSecret      string = "ReconcileSecret"
	ConditionTypeReconcileDaemonSet   string = "ReconcileDaemonSet"
	ConditionTypeReconcileConfigMap   string = "ReconcileConfigMap"
	ConditionTypeReconcileStatefulSet string = "ReconcileStatefulSet"
)

ConditionType is the type of condition

View Source
const (
	ConditionReasonPreparing string = "Preparing"
	ConditionReasonRunning   string = "Running"
	ConditionReasonConfig    string = "Config"
	ConditionReasonReady     string = "Ready"
	ConditionReasonFail      string = "Fail"
)

ConditionReason is the reason for the condition

Variables

This section is empty.

Functions

This section is empty.

Types

type Status

type Status struct {
	// +kubebuilder:validation:Optional
	Conditions []metav1.Condition `json:"conditions,omitempty"`
	// +kubebuilder:validation:Optional
	URLs       []URL  `json:"urls,omitempty"`
	Generation int64  `json:"generation,omitempty"`
	Name       string `json:"name,omitempty"`
	Type       string `json:"type,omitempty"`
}

Status defines the common status

func (*Status) DeepCopy

func (in *Status) DeepCopy() *Status

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

func (*Status) DeepCopyInto

func (in *Status) DeepCopyInto(out *Status)

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

func (*Status) GetGeneration

func (status *Status) GetGeneration() int64

GetGeneration returns the status's generation.

func (*Status) InitStatus

func (status *Status) InitStatus(object client.Object)

InitStatus initializes the status.

func (*Status) InitStatusConditions

func (status *Status) InitStatusConditions()

InitStatusConditions initializes the status conditions to the provided conditions.

func (*Status) IsAvailable

func (status *Status) IsAvailable() bool

IsAvailable returns true if the status is available.

func (*Status) SetStatusCondition

func (status *Status) SetStatusCondition(condition metav1.Condition) (updated bool)

SetStatusCondition sets the status condition.

type URL

type URL struct {
	Name string `json:"name"`
	URL  string `json:"url"`
}

URL is a URL with a name

Jump to

Keyboard shortcuts

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