Documentation ¶
Index ¶
- Constants
- Variables
- func FindStatusCondition(conditions []xpv1.Condition, conditionType xpv1.ConditionType) *xpv1.Condition
- func SetupCAPTClusterController(mgr ctrl.Manager) error
- func SetupWorkspaceTemplateApply(mgr ctrl.Manager, l logging.Logger) error
- type CaptMachineDeploymentReconciler
- type CaptMachineReconciler
- type CaptMachineSetReconciler
- type CaptMachineTemplateReconciler
- type WorkspaceTemplateReconciler
Constants ¶
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 = 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 )
const ( // CaptMachineFinalizer allows CaptMachineReconciler to clean up resources associated with // CaptMachine before removing it from the apiserver. CaptMachineFinalizer = "captmachine.infrastructure.cluster.x-k8s.io" )
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 ¶
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 ¶
SetupCAPTClusterController adds the CAPTCluster controller to the manager
Types ¶
type CaptMachineDeploymentReconciler ¶
type CaptMachineDeploymentReconciler struct { client.Client Scheme *runtime.Scheme Recorder record.EventRecorder }
CaptMachineDeploymentReconciler reconciles a CaptMachineDeployment object
func (*CaptMachineDeploymentReconciler) Reconcile ¶
func (r *CaptMachineDeploymentReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
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 ¶
func (r *CaptMachineSetReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
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 ¶
CaptMachineTemplateReconciler reconciles a CaptMachineTemplate object
func (*CaptMachineTemplateReconciler) Reconcile ¶
func (r *CaptMachineTemplateReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
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 ¶
WorkspaceTemplateReconciler reconciles a WorkspaceTemplate object
func (*WorkspaceTemplateReconciler) Reconcile ¶
func (r *WorkspaceTemplateReconciler) 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.
func (*WorkspaceTemplateReconciler) SetupWithManager ¶
func (r *WorkspaceTemplateReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.