controller

package
v0.1.0-alpha.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// LoadBalancerRunningStatus indicates the load balancer is ready.
	LoadBalancerRunningStatus = "running"
)
View Source
const (
	// ServerStatusPollInterval is the requeue interval when waiting for server status.
	ServerStatusPollInterval = 5 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudscaleClusterReconciler

type CloudscaleClusterReconciler struct {
	client.Client
	Scheme *runtime.Scheme

	WatchFilter string
	// contains filtered or unexported fields
}

CloudscaleClusterReconciler reconciles a CloudscaleCluster object

func (*CloudscaleClusterReconciler) Reconcile

func (r *CloudscaleClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error)

Reconcile handles CloudscaleCluster reconciliation.

func (*CloudscaleClusterReconciler) SetupWithManager

func (r *CloudscaleClusterReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type CloudscaleMachineReconciler

type CloudscaleMachineReconciler struct {
	client.Client
	Scheme *runtime.Scheme

	WatchFilter string
	// contains filtered or unexported fields
}

CloudscaleMachineReconciler reconciles a CloudscaleMachine object

func (*CloudscaleMachineReconciler) Reconcile

func (r *CloudscaleMachineReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error)

Reconcile handles CloudscaleMachine reconciliation.

func (*CloudscaleMachineReconciler) SetupWithManager

func (r *CloudscaleMachineReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type CloudscaleMachineTemplateReconciler

type CloudscaleMachineTemplateReconciler struct {
	client.Client
	Scheme     *runtime.Scheme
	FlavorInfo *cloudscale.FlavorInfo
}

CloudscaleMachineTemplateReconciler reconciles a CloudscaleMachineTemplate object

func (*CloudscaleMachineTemplateReconciler) Reconcile

Reconcile populates the status.capacity and status.nodeInfo fields.

func (*CloudscaleMachineTemplateReconciler) SetupWithManager

func (r *CloudscaleMachineTemplateReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type ServerStatus

type ServerStatus string

ServerStatus represents the status of a cloudscale.ch server.

const (
	// ServerStatusChanging indicates the server is being created or modified.
	ServerStatusChanging ServerStatus = "changing"

	// ServerStatusRunning indicates the server is powered on and ready.
	ServerStatusRunning ServerStatus = "running"

	// ServerStatusStopped indicates the server is powered off.
	ServerStatusStopped ServerStatus = "stopped"

	// ServerStatusPaused indicates the server has been paused.
	ServerStatusPaused ServerStatus = "paused"

	// ServerStatusRescueRunning indicates rescue mode while powered on.
	ServerStatusRescueRunning ServerStatus = "rescue_running"

	// ServerStatusRescueStopped indicates rescue mode while stopped.
	ServerStatusRescueStopped ServerStatus = "rescue_stopped"

	// ServerStatusError indicates an internal error.
	ServerStatusError ServerStatus = "error"

	// ServerStatusUnknown indicates an internal error.
	ServerStatusUnknown ServerStatus = "unknown"
)

Server status constants from cloudscale.ch API.

Jump to

Keyboard shortcuts

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