controller

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// conditions for preflight instance creation
	ConditionPreflightCreated                clusterv1.ConditionType = "PreflightCreated"
	ConditionPreflightRootDiskResizing       clusterv1.ConditionType = "PreflightRootDiskResizing"
	ConditionPreflightRootDiskResized        clusterv1.ConditionType = "PreflightRootDiskResized"
	ConditionPreflightAdditionalDisksCreated clusterv1.ConditionType = "PreflightAdditionalDisksCreated"
	ConditionPreflightConfigured             clusterv1.ConditionType = "PreflightConfigured"
	ConditionPreflightBootTriggered          clusterv1.ConditionType = "PreflightBootTriggered"
	ConditionPreflightReady                  clusterv1.ConditionType = "PreflightReady"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LinodeClusterReconciler

type LinodeClusterReconciler struct {
	client.Client
	Recorder         record.EventRecorder
	LinodeApiKey     string
	WatchFilterValue string
	ReconcileTimeout time.Duration
}

LinodeClusterReconciler reconciles a LinodeCluster object

func (*LinodeClusterReconciler) Reconcile

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

func (*LinodeClusterReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type LinodeMachineReconciler

type LinodeMachineReconciler struct {
	client.Client
	Recorder         record.EventRecorder
	LinodeApiKey     string
	WatchFilterValue string
	Scheme           *runtime.Scheme
	ReconcileTimeout time.Duration
}

LinodeMachineReconciler reconciles a LinodeMachine object

func (*LinodeMachineReconciler) Reconcile

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

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.16.0/pkg/reconcile

func (*LinodeMachineReconciler) ResizeDisk

func (r *LinodeMachineReconciler) ResizeDisk(ctx context.Context, logger logr.Logger, machineScope *scope.MachineScope, linodeInstanceID, rootDiskID, diskSize int) error

func (*LinodeMachineReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

func (*LinodeMachineReconciler) UpdateInstanceConfigProfile

func (r *LinodeMachineReconciler) UpdateInstanceConfigProfile(
	ctx context.Context,
	logger logr.Logger,
	machineScope *scope.MachineScope,
	linodeInstanceID int,
) error

type LinodeObjectStorageBucketReconciler

type LinodeObjectStorageBucketReconciler struct {
	client.Client
	Logger              logr.Logger
	Recorder            record.EventRecorder
	LinodeApiKey        string
	LinodeClientBuilder scope.LinodeObjectStorageClientBuilder
	WatchFilterValue    string
	ReconcileTimeout    time.Duration
}

LinodeObjectStorageBucketReconciler reconciles a LinodeObjectStorageBucket object

func (*LinodeObjectStorageBucketReconciler) Reconcile

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the LinodeObjectStorageBucket object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.17.0/pkg/reconcile

func (*LinodeObjectStorageBucketReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type LinodeVPCReconciler

type LinodeVPCReconciler struct {
	client.Client
	Recorder         record.EventRecorder
	LinodeApiKey     string
	WatchFilterValue string
	Scheme           *runtime.Scheme
	ReconcileTimeout time.Duration
}

LinodeVPCReconciler reconciles a LinodeVPC object

func (*LinodeVPCReconciler) Reconcile

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

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the VPC closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the LinodeVPC object against the actual VPC state, and then perform operations to make the VPC state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.16.0/pkg/reconcile

func (*LinodeVPCReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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