controllers

package
v0.0.0-...-6bb720d Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PetFinalizer = "pet.petstore.example.com"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PetReconciler

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

PetReconciler reconciles a Pet object

func (*PetReconciler) Reconcile

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

Reconcile moves the current state of the pet to be the desired state described in the pet.spec.

func (*PetReconciler) ReconcileDelete

func (r *PetReconciler) ReconcileDelete(ctx context.Context, pet *petstorev1.Pet) (ctrl.Result, error)

ReconcileDelete deletes the pet from the petstore and removes the finalizer.

func (*PetReconciler) ReconcileNormal

func (r *PetReconciler) ReconcileNormal(ctx context.Context, pet *petstorev1.Pet) (ctrl.Result, error)

ReconcileNormal will ensure the finalizer and save the desired state to the petstore.

func (*PetReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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