southboundhandler

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	IntelMachineResourceSchema = schema.GroupVersionResource{Group: infrastructurev1alpha1.GroupVersion.Group, Version: infrastructurev1alpha1.GroupVersion.Version, Resource: "intelmachines"}
	MachineResourceSchema      = schema.GroupVersionResource{Group: clusterv1.GroupVersion.Group, Version: clusterv1.GroupVersion.Version, Resource: "machines"}
)

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(ctx context.Context, cfg *rest.Config) (*Handler, error)

func (*Handler) Register

Register is called by the CO Agent when registring a new cluster node. It retrieves the IntelMachine and Machine resources, extracts the bootstrap script from the secret, and returns the install and uninstall commands.

Parameters: - ctx: The context for the request. - nodeGUID: The GUID of the node to be registered.

Returns: - installCmd: The command to install the node. - uninstallCmd: The command to uninstall the node. - result: The result of the registration process. - err: Any error encountered during the registration process.

func (*Handler) UpdateStatus

UpdateStatus determines the action that the CO Agent should take next based on its current state. It saves the CO Agent's current state in an annotation on the IntelMachine.

Parameters:

  • ctx: The context for the request.
  • nodeGUID: The unique identifier of the node.
  • status: The status code from the CO Agent.

Returns:

  • pb.UpdateClusterStatusResponse_ActionRequest: The action request to be taken based on the status update.
  • error: An error if the status update fails.

Jump to

Keyboard shortcuts

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