virtualmachinereplicaset

package
v1.9.0-p01 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2025 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

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

func MustEqualValue(rsName, labelValue string) bool

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 NewReconciler(
	ctx context.Context,
	client client.Client,
	logger logr.Logger,
	recorder record.Recorder) *Reconciler

func (*Reconciler) Reconcile

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

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.

Jump to

Keyboard shortcuts

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