controller

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DeploymentFinalizer allows CaptMachineDeploymentReconciler to clean up resources associated with
	// CaptMachineDeployment before removing it from the apiserver.
	DeploymentFinalizer = "captmachinedeployment.infrastructure.cluster.x-k8s.io"

	// DefaultDeploymentUniqueLabelKey is the default key of the selector that is added
	// to existing MachineSets to prevent the existing MachineSets from selecting new machines.
	DefaultDeploymentUniqueLabelKey = "capt-deployment-hash"

	// DefaultRollingUpdateMaxUnavailable is the default value of MaxUnavailable for RollingUpdate strategy.
	DefaultRollingUpdateMaxUnavailable = 0

	// DefaultRollingUpdateMaxSurge is the default value of MaxSurge for RollingUpdate strategy.
	DefaultRollingUpdateMaxSurge = 1

	// DefaultRevisionHistoryLimit is the default value of RevisionHistoryLimit.
	DefaultRevisionHistoryLimit = 10

	// DefaultProgressDeadlineSeconds is the default value of ProgressDeadlineSeconds.
	DefaultProgressDeadlineSeconds = 600
)
View Source
const (
	// CaptMachineFinalizer allows CaptMachineReconciler to clean up resources associated with
	// CaptMachine before removing it from the apiserver.
	CaptMachineFinalizer = "captmachine.infrastructure.cluster.x-k8s.io"
)
View Source
const (

	// MachineFinalizer allows CaptMachineSetReconciler to clean up resources associated with CaptMachineSet before
	// removing it from the apiserver.
	MachineFinalizer = "captmachineset.infrastructure.cluster.x-k8s.io"
)

Variables

View Source
var WorkspaceTemplateApplyGroupKind = schema.GroupKind{
	Group: "infrastructure.cluster.x-k8s.io",
	Kind:  "WorkspaceTemplateApply",
}

WorkspaceTemplateApplyGroupKind is the group and kind of the WorkspaceTemplateApply resource

Functions

func FindStatusCondition

func FindStatusCondition(conditions []xpv1.Condition, conditionType xpv1.ConditionType) *xpv1.Condition

FindStatusCondition finds the condition that matches the given type in the condition slice.

func SetupCAPTClusterController

func SetupCAPTClusterController(mgr ctrl.Manager) error

SetupCAPTClusterController adds the CAPTCluster controller to the manager

func SetupWorkspaceTemplateApply

func SetupWorkspaceTemplateApply(mgr ctrl.Manager, l logging.Logger) error

SetupWorkspaceTemplateApply adds a controller that reconciles WorkspaceTemplateApplies.

Types

type CaptMachineDeploymentReconciler

type CaptMachineDeploymentReconciler struct {
	client.Client
	Scheme   *runtime.Scheme
	Recorder record.EventRecorder
}

CaptMachineDeploymentReconciler reconciles a CaptMachineDeployment object

func (*CaptMachineDeploymentReconciler) Reconcile

Reconcile handles CaptMachineDeployment reconciliation

func (*CaptMachineDeploymentReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type CaptMachineReconciler

type CaptMachineReconciler struct {
	client.Client
	Scheme   *runtime.Scheme
	Recorder record.EventRecorder
}

CaptMachineReconciler reconciles a CaptMachine object

func (*CaptMachineReconciler) Reconcile

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

Reconcile handles CaptMachine reconciliation

func (*CaptMachineReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type CaptMachineSetReconciler

type CaptMachineSetReconciler struct {
	client.Client
	Scheme   *runtime.Scheme
	Recorder record.EventRecorder
}

CaptMachineSetReconciler reconciles a CaptMachineSet object

func (*CaptMachineSetReconciler) Reconcile

Reconcile handles CaptMachineSet reconciliation

func (*CaptMachineSetReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type CaptMachineTemplateReconciler

type CaptMachineTemplateReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

CaptMachineTemplateReconciler reconciles a CaptMachineTemplate object

func (*CaptMachineTemplateReconciler) Reconcile

Reconcile handles CaptMachineTemplate reconciliation

func (*CaptMachineTemplateReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type WorkspaceTemplateReconciler

type WorkspaceTemplateReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

WorkspaceTemplateReconciler reconciles a WorkspaceTemplate object

func (*WorkspaceTemplateReconciler) 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.

func (*WorkspaceTemplateReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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