Documentation ¶
Index ¶
Constants ¶
View Source
const ClusterUpdateTaskNameLabel = "update.extension.cluster.x-k8s.io/cluster-update-task-name"
Variables ¶
This section is empty.
Functions ¶
func AbortNodeUpdateTask ¶
func AbortNodeUpdateTask(ctx context.Context, c client.Client, nodeUpdateTask *unstructured.Unstructured) error
func CreateNodeUpdateTask ¶
func CreateNodeUpdateTask(ctx context.Context, c client.Client, task *updatev1beta1.UpdateTask, machine *clusterv1.Machine) (*unstructured.Unstructured, error)
Create nodeUpdateTask from template. nodeUpdateTask must has a ClusterUpdateTaskNameLabel label point to cluster updateTask. nodeUpdateTask must has spec.phase with type UpdateTaskPhase.\ nodeUpdateTask must has spec.newMachineSpec with type MachineSpec. nodeUpdateTask must has status.state with type UpdateTaskState. nodeUpdateTask can has status.conditions to report detailed state message.
Types ¶
type NodeUpdateTaskStatus ¶
type NodeUpdateTaskStatus struct { CreationTimestamp metav1.Time `json:"creationTimestamp,omitempty"` MachineName string `json:"machineName,omitempty"` Phase updatev1beta1.UpdateTaskPhase `json:"phase,omitempty"` State updatev1beta1.UpdateTaskState `json:"state,omitempty"` Conditions clusterv1.Conditions `json:"conditions,omitempty"` }
func GetNodeUpdateTaskStatus ¶
func GetNodeUpdateTaskStatus(ctx context.Context, c client.Client, nodeUpdateTask *unstructured.Unstructured) (*NodeUpdateTaskStatus, error)
Click to show internal directories.
Click to hide internal directories.