Documentation ¶
Index ¶
- Constants
- type PetReconciler
- func (r *PetReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, errResult error)
- func (r *PetReconciler) ReconcileDelete(ctx context.Context, pet *petstorev1.Pet) (ctrl.Result, error)
- func (r *PetReconciler) ReconcileNormal(ctx context.Context, pet *petstorev1.Pet) (ctrl.Result, error)
- func (r *PetReconciler) SetupWithManager(mgr ctrl.Manager) error
Constants ¶
View Source
const (
PetFinalizer = "pet.petstore.example.com"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PetReconciler ¶
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.
Click to show internal directories.
Click to hide internal directories.