v1alpha

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2026 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UpgradePhaseNodeUpgrade    UpgradePhase = "NodeUpgrade"
	UpgradePhaseFeatureUpgrade UpgradePhase = "FeatureUpgrade"
	UpgradePhaseCompleted      UpgradePhase = "Completed"
	UpgradePhaseFailed         UpgradePhase = "Failed"

	UpgradeStrategyRollingUpgrade   UpgradeStrategy = "RollingUpgrade"
	UpgradeStrategyRollingDowngrade UpgradeStrategy = "RollingDowngrade"
	UpgradeStrategyInPlace          UpgradeStrategy = "InPlace"
)

NOTE(Hue): Make sure to keep these up to date with the UpgradePhase type and UpgradeStrategy type Enum validations.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects.
	GroupVersion = schema.GroupVersion{Group: "k8sd.io", Version: "v1alpha"}

	// 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 Upgrade

type Upgrade struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// +optional
	Status UpgradeStatus `json:"status,omitempty"`
}

Upgrade is the Schema for the upgrades API.

func NewUpgrade

func NewUpgrade(name string) *Upgrade

NewUpgrade creates a new Upgrade object with the given name.

func (*Upgrade) DeepCopy

func (in *Upgrade) DeepCopy() *Upgrade

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

func (*Upgrade) DeepCopyInto

func (in *Upgrade) DeepCopyInto(out *Upgrade)

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

func (*Upgrade) DeepCopyObject

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

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

type UpgradeList

type UpgradeList struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Upgrade `json:"items"`
}

UpgradeList contains a list of Upgrade.

func (*UpgradeList) DeepCopy

func (in *UpgradeList) DeepCopy() *UpgradeList

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

func (*UpgradeList) DeepCopyInto

func (in *UpgradeList) DeepCopyInto(out *UpgradeList)

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

func (*UpgradeList) DeepCopyObject

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

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

type UpgradePhase

type UpgradePhase string

+kubebuilder:validation:Enum=NodeUpgrade;FeatureUpgrade;Completed;Failed

type UpgradeStatus

type UpgradeStatus struct {
	// Phase indicates the current phase of the upgrade process.
	// +required
	Phase UpgradePhase `json:"phase,omitempty"`
	// Strategy indicates the strategy used for the upgrade.
	// +required
	Strategy UpgradeStrategy `json:"strategy,omitempty"`
	// UpgradedNodes is a list of nodes that have been successfully upgraded.
	// +optional
	UpgradedNodes []string `json:"upgradedNodes,omitempty"`
}

UpgradeStatus defines the observed state of Upgrade.

func (*UpgradeStatus) DeepCopy

func (in *UpgradeStatus) DeepCopy() *UpgradeStatus

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

func (*UpgradeStatus) DeepCopyInto

func (in *UpgradeStatus) DeepCopyInto(out *UpgradeStatus)

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

type UpgradeStrategy

type UpgradeStrategy string

+kubebuilder:validation:Enum=RollingUpgrade;RollingDowngrade;InPlace

Jump to

Keyboard shortcuts

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