Documentation
¶
Index ¶
Constants ¶
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 ¶
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 ¶
NewUpgrade creates a new Upgrade object with the given name.
func (*Upgrade) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Upgrade.
func (*Upgrade) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Upgrade) DeepCopyObject ¶
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