v1beta1

package
v0.0.0-...-57271b7 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v1beta1 contains API Schema definitions for the update v1beta1 API group +kubebuilder:object:generate=true +groupName=update.extension.cluster.x-k8s.io

Index

Constants

View Source
const (
	UpdateOperationCondition clusterv1.ConditionType = "UpdateOperation"
	AbortOperationCondition  clusterv1.ConditionType = "AbortOperation"
	TrackOperationCondition  clusterv1.ConditionType = "TrackOperation"
)
View Source
const (
	NodeUpdateFailedReason       = "UpdateFailed"
	PreflightCheckFailedReason   = "PreflightCheckFailed"
	CreateNodeUpdateFailedReason = "CreateNodeUpdateFailed"

	AbortNodeUpdateFailedReason = "AbortNodeUpdateFailed"
)
View Source
const MachineUpToDate clusterv1.ConditionType = "MachineUpToDate"
View Source
const (
	UpdateTaskAnnotationName = "update.extension.cluster.x-k8s.io/cluster-update-task-name"
)
View Source
const UpdateTaskFinalizer = "updatetask.update.extension.cluster.x-k8s.io"

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "update.extension.cluster.x-k8s.io", Version: "v1beta1"}

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

func IsTerminated

func IsTerminated(state UpdateTaskState) bool

Types

type ControlPlaneExternalUpdateRequest

type ControlPlaneExternalUpdateRequest struct {
	metav1.TypeMeta `json:",inline"`
	// CommonRequest contains fields common to all request types.
	runtimehooksv1.CommonRequest `json:",inline"`
	ClusterRef                   *corev1.ObjectReference  `json:"clusterRef,omitempty"`
	ControlPlaneRef              *corev1.ObjectReference  `json:"controlPlaneRef,omitempty"`
	MachinesRequireUpdate        []corev1.ObjectReference `json:"machinesRequireUpdate,omitempty"`
	NewMachine                   MachineSpec              `json:"newMachine,omitempty"`
}

ControlPlaneExternalUpdateRequest is the input to an external update strategy implementer for a CP.

func (*ControlPlaneExternalUpdateRequest) DeepCopy

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

func (*ControlPlaneExternalUpdateRequest) DeepCopyInto

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

type ControlPlaneExternalUpdateResponse

type ControlPlaneExternalUpdateResponse struct {
	metav1.TypeMeta `json:",inline"`
	// CommonRetryResponse contains Status, Message and RetryAfterSeconds fields.
	runtimehooksv1.CommonRetryResponse `json:",inline"`
}

ControlPlaneExternalUpdateResponse is the response from an external update strategy implementer.

func (*ControlPlaneExternalUpdateResponse) DeepCopy

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

func (*ControlPlaneExternalUpdateResponse) DeepCopyInto

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

type DockerNodeUpdateTask

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

	Spec   DockerNodeUpdateTaskSpec   `json:"spec,omitempty"`
	Status DockerNodeUpdateTaskStatus `json:"status,omitempty"`
}

DockerNodeUpdateTask is the Schema for the dockernodeupdatetasks API

func (*DockerNodeUpdateTask) DeepCopy

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

func (*DockerNodeUpdateTask) DeepCopyInto

func (in *DockerNodeUpdateTask) DeepCopyInto(out *DockerNodeUpdateTask)

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

func (*DockerNodeUpdateTask) DeepCopyObject

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

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

type DockerNodeUpdateTaskList

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

DockerNodeUpdateTaskList contains a list of DockerNodeUpdateTask

func (*DockerNodeUpdateTaskList) DeepCopy

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

func (*DockerNodeUpdateTaskList) DeepCopyInto

func (in *DockerNodeUpdateTaskList) DeepCopyInto(out *DockerNodeUpdateTaskList)

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

func (*DockerNodeUpdateTaskList) DeepCopyObject

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

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

type DockerNodeUpdateTaskSpec

type DockerNodeUpdateTaskSpec struct {
	MachineName    string          `json:"machineName,omitempty"`
	NewMachineSpec MachineSpec     `json:"newMachineSpec,omitempty"`
	Phase          UpdateTaskPhase `json:"phase,omitempty"`
}

DockerNodeUpdateTaskSpec defines the desired state of DockerNodeUpdateTask

func (*DockerNodeUpdateTaskSpec) DeepCopy

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

func (*DockerNodeUpdateTaskSpec) DeepCopyInto

func (in *DockerNodeUpdateTaskSpec) DeepCopyInto(out *DockerNodeUpdateTaskSpec)

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

type DockerNodeUpdateTaskStatus

type DockerNodeUpdateTaskStatus struct {
	State      UpdateTaskState       `json:"state,omitempty"`
	Conditions []clusterv1.Condition `json:"conditions,omitempty"`
}

DockerNodeUpdateTaskStatus defines the observed state of DockerNodeUpdateTask

func (*DockerNodeUpdateTaskStatus) DeepCopy

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

func (*DockerNodeUpdateTaskStatus) DeepCopyInto

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

type DockerNodeUpdateTaskTemplate

type DockerNodeUpdateTaskTemplate struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              DockerNodeUpdateTaskTemplateSpec `json:"spec,omitempty"`
}

+kubebuilder:object:root=true

func (*DockerNodeUpdateTaskTemplate) DeepCopy

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

func (*DockerNodeUpdateTaskTemplate) DeepCopyInto

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

func (*DockerNodeUpdateTaskTemplate) DeepCopyObject

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

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

type DockerNodeUpdateTaskTemplateList

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

+kubebuilder:object:root=true DockerNodeUpdateTaskTemplateList contains a list of DockerNodeUpdateTaskTemplate

func (*DockerNodeUpdateTaskTemplateList) DeepCopy

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

func (*DockerNodeUpdateTaskTemplateList) DeepCopyInto

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

func (*DockerNodeUpdateTaskTemplateList) DeepCopyObject

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

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

type DockerNodeUpdateTaskTemplateResource

type DockerNodeUpdateTaskTemplateResource struct {
	ObjectMeta clusterv1.ObjectMeta     `json:"metadata,omitempty"`
	Spec       DockerNodeUpdateTaskSpec `json:"spec"`
}

func (*DockerNodeUpdateTaskTemplateResource) DeepCopy

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

func (*DockerNodeUpdateTaskTemplateResource) DeepCopyInto

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

type DockerNodeUpdateTaskTemplateSpec

type DockerNodeUpdateTaskTemplateSpec struct {
	Template DockerNodeUpdateTaskTemplateResource `json:"template"`
}

func (*DockerNodeUpdateTaskTemplateSpec) DeepCopy

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

func (*DockerNodeUpdateTaskTemplateSpec) DeepCopyInto

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

type FakeNodeUpdateTask

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

	Spec   FakeNodeUpdateTaskSpec   `json:"spec,omitempty"`
	Status FakeNodeUpdateTaskStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true

func (*FakeNodeUpdateTask) DeepCopy

func (in *FakeNodeUpdateTask) DeepCopy() *FakeNodeUpdateTask

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

func (*FakeNodeUpdateTask) DeepCopyInto

func (in *FakeNodeUpdateTask) DeepCopyInto(out *FakeNodeUpdateTask)

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

func (*FakeNodeUpdateTask) DeepCopyObject

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

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

type FakeNodeUpdateTaskList

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

+kubebuilder:object:root=true FakeNodeUpdateTaskList contains a list of FakeNodeUpdateTask

func (*FakeNodeUpdateTaskList) DeepCopy

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

func (*FakeNodeUpdateTaskList) DeepCopyInto

func (in *FakeNodeUpdateTaskList) DeepCopyInto(out *FakeNodeUpdateTaskList)

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

func (*FakeNodeUpdateTaskList) DeepCopyObject

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

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

type FakeNodeUpdateTaskSpec

type FakeNodeUpdateTaskSpec struct {
	Field1         string          `json:"field1,omitempty"`
	Field2         string          `json:"field2,omitempty"`
	Field3         string          `json:"field3,omitempty"`
	MachineName    string          `json:"machineName,omitempty"`
	NewMachineSpec MachineSpec     `json:"newMachineSpec,omitempty"`
	Phase          UpdateTaskPhase `json:"phase,omitempty"`
}

func (*FakeNodeUpdateTaskSpec) DeepCopy

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

func (*FakeNodeUpdateTaskSpec) DeepCopyInto

func (in *FakeNodeUpdateTaskSpec) DeepCopyInto(out *FakeNodeUpdateTaskSpec)

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

type FakeNodeUpdateTaskStatus

type FakeNodeUpdateTaskStatus struct {
	State      UpdateTaskState       `json:"state,omitempty"`
	Conditions []clusterv1.Condition `json:"conditions,omitempty"`
}

func (*FakeNodeUpdateTaskStatus) DeepCopy

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

func (*FakeNodeUpdateTaskStatus) DeepCopyInto

func (in *FakeNodeUpdateTaskStatus) DeepCopyInto(out *FakeNodeUpdateTaskStatus)

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

type FakeNodeUpdateTaskTemplate

type FakeNodeUpdateTaskTemplate struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              FakeNodeUpdateTaskTemplateSpec `json:"spec,omitempty"`
}

+kubebuilder:object:root=true

func (*FakeNodeUpdateTaskTemplate) DeepCopy

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

func (*FakeNodeUpdateTaskTemplate) DeepCopyInto

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

func (*FakeNodeUpdateTaskTemplate) DeepCopyObject

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

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

type FakeNodeUpdateTaskTemplateList

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

+kubebuilder:object:root=true FakeNodeUpdateTaskTemplateList contains a list of FakeNodeUpdateTaskTemplate

func (*FakeNodeUpdateTaskTemplateList) DeepCopy

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

func (*FakeNodeUpdateTaskTemplateList) DeepCopyInto

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

func (*FakeNodeUpdateTaskTemplateList) DeepCopyObject

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

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

type FakeNodeUpdateTaskTemplateResource

type FakeNodeUpdateTaskTemplateResource struct {
	ObjectMeta clusterv1.ObjectMeta   `json:"metadata,omitempty"`
	Spec       FakeNodeUpdateTaskSpec `json:"spec"`
}

func (*FakeNodeUpdateTaskTemplateResource) DeepCopy

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

func (*FakeNodeUpdateTaskTemplateResource) DeepCopyInto

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

type FakeNodeUpdateTaskTemplateSpec

type FakeNodeUpdateTaskTemplateSpec struct {
	Template FakeNodeUpdateTaskTemplateResource `json:"template"`
}

func (*FakeNodeUpdateTaskTemplateSpec) DeepCopy

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

func (*FakeNodeUpdateTaskTemplateSpec) DeepCopyInto

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

type MachineDeploymentExternalUpdateRequest

type MachineDeploymentExternalUpdateRequest struct {
	metav1.TypeMeta `json:",inline"`
	// CommonRequest contains fields common to all request types.
	runtimehooksv1.CommonRequest `json:",inline"`
	ClusterRef                   *corev1.ObjectReference  `json:"clusterRef,omitempty"`
	MachineDeploymentRef         *corev1.ObjectReference  `json:"machineDeploymentRef,omitempty"`
	MachinesRequireUpdate        []corev1.ObjectReference `json:"machinesRequireUpdate,omitempty"`
	NewMachine                   MachineSpec              `json:"newMachine,omitempty"`
}

MachineDeploymentExternalUpdateRequest is the input to an external update strategy implementer for a groups of machines.

func (*MachineDeploymentExternalUpdateRequest) DeepCopy

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

func (*MachineDeploymentExternalUpdateRequest) DeepCopyInto

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

type MachineDeploymentExternalUpdateResponse

type MachineDeploymentExternalUpdateResponse struct {
	metav1.TypeMeta `json:",inline"`
	// CommonRetryResponse contains Status, Message and RetryAfterSeconds fields.
	runtimehooksv1.CommonRetryResponse `json:",inline"`
}

MachineDeploymentExternalUpdateResponse is the response from an external update strategy implementer.

func (*MachineDeploymentExternalUpdateResponse) DeepCopy

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

func (*MachineDeploymentExternalUpdateResponse) DeepCopyInto

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

type MachineSpec

type MachineSpec struct {
	Version         string `json:"version,omitempty"`
	BootstrapConfig string `json:"bootstrapConfig,omitempty"`
	InfraMachine    string `json:"infraMachine,omitempty"`
}

TODO: how to define machine spec??? * // kubeadmControlPlane

kubeadmConfigSpec:
   clusterConfiguration:
     apiServer:
       certSANs:
       - localhost
       - 127.0.0.1
       - 0.0.0.0
       - host.docker.internal
     controllerManager:
       extraArgs:
         enable-hostpath-provisioner: "true"
     dns: {}
     etcd: {}
     networking: {}
     scheduler: {}
   format: cloud-config
   initConfiguration:
     localAPIEndpoint: {}
     nodeRegistration:
       imagePullPolicy: IfNotPresent
   joinConfiguration:
     discovery: {}
     nodeRegistration:
       imagePullPolicy: IfNotPresent
 machineTemplate:
   infrastructureRef:
     apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
     kind: DockerMachineTemplate
     name: md-scale-au4y6s-control-plane
     namespace: md-scale-c12jos
   metadata: {}

// machineDeployment

template:
  metadata:
    labels:
      cluster.x-k8s.io/cluster-name: md-scale-au4y6s
      cluster.x-k8s.io/deployment-name: md-scale-au4y6s-md-0
  spec:
    bootstrap:
      configRef:
        apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
        kind: KubeadmConfigTemplate
        name: md-scale-au4y6s-md-0
    clusterName: md-scale-au4y6s
    failureDomain: fd4
    infrastructureRef:
      apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
      kind: DockerMachineTemplate
      name: md-scale-au4y6s-md-0
    version: v1.29.0

*

func (*MachineSpec) DeepCopy

func (in *MachineSpec) DeepCopy() *MachineSpec

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

func (*MachineSpec) DeepCopyInto

func (in *MachineSpec) DeepCopyInto(out *MachineSpec)

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

type NodeUpdateTaskTemplateSpec

type NodeUpdateTaskTemplateSpec struct {
	metav1.ObjectMeta `json:"metadata,omitempty"`
	InfrastructureRef corev1.ObjectReference `json:"infrastructureRef"`
}

NodeUpdateTemplateSpec is template of nodeUpdateTask

func (*NodeUpdateTaskTemplateSpec) DeepCopy

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

func (*NodeUpdateTaskTemplateSpec) DeepCopyInto

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

type UpdatePolicy

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

	Spec   UpdatePolicySpec   `json:"spec,omitempty"`
	Status UpdatePolicyStatus `json:"status,omitempty"`
}

UpdatePolicy is the Schema for the updatepolicies API

func (*UpdatePolicy) DeepCopy

func (in *UpdatePolicy) DeepCopy() *UpdatePolicy

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

func (*UpdatePolicy) DeepCopyInto

func (in *UpdatePolicy) DeepCopyInto(out *UpdatePolicy)

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

func (*UpdatePolicy) DeepCopyObject

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

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

type UpdatePolicyList

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

UpdatePolicyList contains a list of UpdatePolicy

func (*UpdatePolicyList) DeepCopy

func (in *UpdatePolicyList) DeepCopy() *UpdatePolicyList

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

func (*UpdatePolicyList) DeepCopyInto

func (in *UpdatePolicyList) DeepCopyInto(out *UpdatePolicyList)

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

func (*UpdatePolicyList) DeepCopyObject

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

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

type UpdatePolicySpec

type UpdatePolicySpec struct {
	NodeUpdateTemplateRef *corev1.ObjectReference `json:"nodeUpdateTemplateRef"`
}

UpdatePolicySpec defines the desired state of UpdatePolicy

func (*UpdatePolicySpec) DeepCopy

func (in *UpdatePolicySpec) DeepCopy() *UpdatePolicySpec

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

func (*UpdatePolicySpec) DeepCopyInto

func (in *UpdatePolicySpec) DeepCopyInto(out *UpdatePolicySpec)

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

type UpdatePolicyStatus

type UpdatePolicyStatus struct {
}

UpdatePolicyStatus defines the observed state of UpdatePolicy

func (*UpdatePolicyStatus) DeepCopy

func (in *UpdatePolicyStatus) DeepCopy() *UpdatePolicyStatus

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

func (*UpdatePolicyStatus) DeepCopyInto

func (in *UpdatePolicyStatus) DeepCopyInto(out *UpdatePolicyStatus)

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

type UpdateTask

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

	Spec   UpdateTaskSpec   `json:"spec,omitempty"`
	Status UpdateTaskStatus `json:"status,omitempty"`
}

UpdateTask is the Schema for the updatetasks API

func (*UpdateTask) DeepCopy

func (in *UpdateTask) DeepCopy() *UpdateTask

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

func (*UpdateTask) DeepCopyInto

func (in *UpdateTask) DeepCopyInto(out *UpdateTask)

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

func (*UpdateTask) DeepCopyObject

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

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

func (*UpdateTask) GetConditions

func (c *UpdateTask) GetConditions() clusterv1.Conditions

GetConditions returns the set of conditions for this object.

func (*UpdateTask) SetConditions

func (c *UpdateTask) SetConditions(conditions clusterv1.Conditions)

SetConditions sets the conditions on this object.

type UpdateTaskList

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

UpdateTaskList contains a list of UpdateTask

func (*UpdateTaskList) DeepCopy

func (in *UpdateTaskList) DeepCopy() *UpdateTaskList

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

func (*UpdateTaskList) DeepCopyInto

func (in *UpdateTaskList) DeepCopyInto(out *UpdateTaskList)

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

func (*UpdateTaskList) DeepCopyObject

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

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

type UpdateTaskPhase

type UpdateTaskPhase string
const (
	UpdateTaskPhaseUpdate UpdateTaskPhase = "Update"
	UpdateTaskPhaseAbort  UpdateTaskPhase = "Abort"
)

type UpdateTaskSpec

type UpdateTaskSpec struct {
	// ClusterRef reference to capi Cluster
	ClusterRef *corev1.ObjectReference `json:"clusterRef,omitempty"`

	// ControlPlaneRef reference to capi controlplane cr when this is an update on controlplane
	// +optional
	ControlPlaneRef *corev1.ObjectReference `json:"controlPlaneRef,omitempty"`

	// MachineDeploymentRef reference to capi machinedeployment cr when this is an update on machinedeployment
	// +optional
	MachineDeploymentRef *corev1.ObjectReference `json:"machineDeploymentRef,omitempty"`

	// MachinesRequireUpdate reference to list of machines which need to be updated
	// +optional
	MachinesRequireUpdate []corev1.ObjectReference `json:"machinesRequireUpdate,omitempty"`

	// NewMachineSpec indicates the new machine spec to be updated to
	NewMachineSpec MachineSpec `json:"newMachineSpec,omitempty"`

	// NodeUpdateTemplate indicates the template to be used for creating nodeUpdateTask
	NodeUpdateTemplate NodeUpdateTaskTemplateSpec `json:"template,omitempty"`

	// TargetPhase indicates the phase of update
	TargetPhase UpdateTaskPhase `json:"phase,omitempty"`
}

UpdateTaskSpec defines the desired state of UpdateTask

func (*UpdateTaskSpec) DeepCopy

func (in *UpdateTaskSpec) DeepCopy() *UpdateTaskSpec

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

func (*UpdateTaskSpec) DeepCopyInto

func (in *UpdateTaskSpec) DeepCopyInto(out *UpdateTaskSpec)

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

type UpdateTaskState

type UpdateTaskState string
const (
	UpdateTaskStateUnknown    UpdateTaskState = ""
	UpdateTaskStateInProgress UpdateTaskState = "InProgress"
	UpdateTaskStateFailed     UpdateTaskState = "Failed"
	UpdateTaskStateUpdated    UpdateTaskState = "Updated"
	UpdateTaskStateAborted    UpdateTaskState = "Aborted"
)

type UpdateTaskStatus

type UpdateTaskStatus struct {
	// State indicates update state
	State UpdateTaskState `json:"state,omitempty"`

	// Conditions defines current service state of the updateTask.
	// +optional
	Conditions clusterv1.Conditions `json:"conditions,omitempty"`
}

UpdateTaskStatus defines the observed state of UpdateTask

func (*UpdateTaskStatus) DeepCopy

func (in *UpdateTaskStatus) DeepCopy() *UpdateTaskStatus

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

func (*UpdateTaskStatus) DeepCopyInto

func (in *UpdateTaskStatus) DeepCopyInto(out *UpdateTaskStatus)

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