Documentation ¶
Overview ¶
Package controllers implements controllers.
Index ¶
- Constants
- type KKClusterReconciler
- type KKInstanceReconciler
- func (r *KKInstanceReconciler) KKClusterToKKInstances(log logr.Logger) handler.MapFunc
- func (r *KKInstanceReconciler) KKMachineToKKInstanceMapFunc(log logr.Logger) handler.MapFunc
- func (r *KKInstanceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, retErr error)
- func (r *KKInstanceReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error
- type KKMachineReconciler
- func (r *KKMachineReconciler) KKClusterToKKMachines(log logr.Logger) handler.MapFunc
- func (r *KKMachineReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, retErr error)
- func (r *KKMachineReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error
Constants ¶
const (
InstanceIDIndex = ".spec.instanceID"
)
InstanceIDIndex defines the kk machine controller's instance ID index.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KKClusterReconciler ¶
type KKClusterReconciler struct { client.Client Recorder record.EventRecorder Scheme *runtime.Scheme WatchFilterValue string DataDir string }
KKClusterReconciler reconciles a KKCluster object
func (*KKClusterReconciler) SetupWithManager ¶
func (r *KKClusterReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error
SetupWithManager sets up the controller with the Manager.
type KKInstanceReconciler ¶
type KKInstanceReconciler struct { client.Client Scheme *runtime.Scheme Recorder record.EventRecorder WatchFilterValue string DataDir string WaitKKInstanceInterval time.Duration WaitKKInstanceTimeout time.Duration // contains filtered or unexported fields }
KKInstanceReconciler reconciles a KKInstance object
func (*KKInstanceReconciler) KKClusterToKKInstances ¶
func (r *KKInstanceReconciler) KKClusterToKKInstances(log logr.Logger) handler.MapFunc
KKClusterToKKInstances is a handler.ToRequestsFunc to be used to enqeue requests for reconciliation of KKInstance.
func (*KKInstanceReconciler) KKMachineToKKInstanceMapFunc ¶
func (r *KKInstanceReconciler) KKMachineToKKInstanceMapFunc(log logr.Logger) handler.MapFunc
KKMachineToKKInstanceMapFunc returns a handler.ToRequestsFunc that watches for KKMachine events and returns reconciliation requests for an KKInstance object.
func (*KKInstanceReconciler) SetupWithManager ¶
func (r *KKInstanceReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error
SetupWithManager sets up the controller with the Manager.
type KKMachineReconciler ¶
type KKMachineReconciler struct { client.Client Scheme *runtime.Scheme Recorder record.EventRecorder Tracker *remote.ClusterCacheTracker WatchFilterValue string DataDir string }
KKMachineReconciler reconciles a KKMachine object
func (*KKMachineReconciler) KKClusterToKKMachines ¶
func (r *KKMachineReconciler) KKClusterToKKMachines(log logr.Logger) handler.MapFunc
KKClusterToKKMachines is a handler.ToRequestsFunc to be used to enqeue requests for reconciliation of KKMachines.
func (*KKMachineReconciler) SetupWithManager ¶
func (r *KKMachineReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error
SetupWithManager sets up the controller with the Manager.