v1alpha1

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the lifecycle v1alpha1 API group +kubebuilder:object:generate=true +groupName=lifecycle.suse.com

Index

Constants

View Source
const (
	OperatingSystemUpgradedCondition = "OSUpgraded"

	KubernetesUpgradedCondition     = "KubernetesUpgraded"
	RancherUpgradedCondition        = "RancherUpgraded"
	LonghornUpgradedCondition       = "LonghornUpgraded"
	MetalLBUpgradedCondition        = "MetalLBUpgraded"
	CDIUpgradedCondition            = "CDIUpgraded"
	KubevirtUpgradedCondition       = "KubeVirtUpgraded"
	NeuVectorUpgradedCondition      = "NeuVectorUpgraded"
	EndpointCopierUpgradedCondition = "EndpointCopierOperatorUpgraded"
	ElementalUpgradedCondition      = "ElementalUpgraded"
	SRIOVUpgradedCondition          = "SRIOVNetworkOperatorUpgraded"
	AkriUpgradedCondition           = "AkriUpgraded"
	Metal3UpgradedCondition         = "Metal3Upgraded"

	// UpgradeError indicates that the upgrade process has encountered a transient error.
	UpgradeError = "Error"

	// UpgradePending indicates that the upgrade process has not begun.
	UpgradePending = "Pending"

	// UpgradeInProgress indicates that the upgrade process has started.
	UpgradeInProgress = "InProgress"

	// UpgradeSkipped indicates that the upgrade has been skipped.
	UpgradeSkipped = "Skipped"

	// UpgradeSucceeded indicates that the upgrade process has been successful.
	UpgradeSucceeded = "Succeeded"

	// UpgradeFailed indicates that the upgrade process has failed.
	UpgradeFailed = "Failed"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "lifecycle.suse.com", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type Drain

type Drain struct {
	// +optional
	ControlPlane *bool `json:"controlPlane"`
	// +optional
	Worker *bool `json:"worker"`
}

type UpgradePlan

type UpgradePlan struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   UpgradePlanSpec   `json:"spec,omitempty"`
	Status UpgradePlanStatus `json:"status,omitempty"`
}

UpgradePlan is the Schema for the upgradeplans API

func (*UpgradePlan) DeepCopy

func (in *UpgradePlan) DeepCopy() *UpgradePlan

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

func (*UpgradePlan) DeepCopyInto

func (in *UpgradePlan) DeepCopyInto(out *UpgradePlan)

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

func (*UpgradePlan) DeepCopyObject

func (in *UpgradePlan) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type UpgradePlanList

type UpgradePlanList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []UpgradePlan `json:"items"`
}

UpgradePlanList contains a list of UpgradePlan

func (*UpgradePlanList) DeepCopy

func (in *UpgradePlanList) DeepCopy() *UpgradePlanList

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

func (*UpgradePlanList) DeepCopyInto

func (in *UpgradePlanList) DeepCopyInto(out *UpgradePlanList)

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

func (*UpgradePlanList) DeepCopyObject

func (in *UpgradePlanList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type UpgradePlanSpec

type UpgradePlanSpec struct {
	// ReleaseVersion specifies the target version for platform upgrade.
	// The version format is X.Y.Z, for example "3.0.2".
	ReleaseVersion string `json:"releaseVersion"`
	// Drain specifies whether control-plane and worker nodes should be drained.
	// If left unspecified, drain is done on both control-plane and worker nodes by default.
	// +optional
	Drain *Drain `json:"drain"`
}

UpgradePlanSpec defines the desired state of UpgradePlan

func (*UpgradePlanSpec) DeepCopy

func (in *UpgradePlanSpec) DeepCopy() *UpgradePlanSpec

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

func (*UpgradePlanSpec) DeepCopyInto

func (in *UpgradePlanSpec) DeepCopyInto(out *UpgradePlanSpec)

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

type UpgradePlanStatus

type UpgradePlanStatus struct {
	// +listType=map
	// +listMapKey=type
	// +patchStrategy=merge
	// +patchMergeKey=type
	// +optional
	Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`
}

UpgradePlanStatus defines the observed state of UpgradePlan

func (*UpgradePlanStatus) DeepCopy

func (in *UpgradePlanStatus) DeepCopy() *UpgradePlanStatus

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

func (*UpgradePlanStatus) DeepCopyInto

func (in *UpgradePlanStatus) DeepCopyInto(out *UpgradePlanStatus)

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

Jump to

Keyboard shortcuts

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