nodes

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: 11 Imported by: 0

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)

Jump to

Keyboard shortcuts

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