Documentation
¶
Index ¶
- func AddToManager(ctx *pkgctx.ControllerManagerContext, mgr manager.Manager) error
- func MustEqualValue(rsName, labelValue string) bool
- type Reconciler
- func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error)
- func (r *Reconciler) ReconcileDelete(ctx *pkgctx.VirtualMachineReplicaSetContext) error
- func (r *Reconciler) ReconcileNormal(ctx *pkgctx.VirtualMachineReplicaSetContext) (ctrl.Result, error)
- func (r *Reconciler) VMToReplicaSets(ctx *pkgctx.ControllerManagerContext) func(_ context.Context, o client.Object) []reconcile.Request
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddToManager ¶
func AddToManager(ctx *pkgctx.ControllerManagerContext, mgr manager.Manager) error
AddToManager adds this package's controller to the provided manager.
func MustEqualValue ¶
MustEqualValue returns true if the replica set name equals either the label value or its hashed value.
Types ¶
type Reconciler ¶
type Reconciler struct {
client.Client
Context context.Context
Logger logr.Logger
Recorder record.Recorder
Prober prober.Manager
}
Reconciler reconciles a VirtualMachine object.
func NewReconciler ¶
func (*Reconciler) ReconcileDelete ¶
func (r *Reconciler) ReconcileDelete(ctx *pkgctx.VirtualMachineReplicaSetContext) error
func (*Reconciler) ReconcileNormal ¶
func (r *Reconciler) ReconcileNormal(ctx *pkgctx.VirtualMachineReplicaSetContext) (ctrl.Result, error)
func (*Reconciler) VMToReplicaSets ¶
func (r *Reconciler) VMToReplicaSets( ctx *pkgctx.ControllerManagerContext) func(_ context.Context, o client.Object) []reconcile.Request
VMToReplicaSets is a mapper function to be used to enqueue requests for reconciliation for VirtualMachineSetReplicaSets that might adopt a VM.
Click to show internal directories.
Click to hide internal directories.