usersignupcleanup

package
v0.0.0-...-76b358d Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MaxActivationsForCleanup is the maximum number of activations that a user may have in order to be considered
	// for cleanup.  If the number of user activations exceeds this constant value, then cleanup will not occur.
	MaxActivationsForCleanup = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Reconciler

type Reconciler struct {
	Client runtimeclient.Client
	Scheme *runtime.Scheme
}

Reconciler cleans up old UserSignup resources

func (*Reconciler) DeleteUserSignup

func (r *Reconciler) DeleteUserSignup(ctx context.Context, userSignup *toolchainv1alpha1.UserSignup) error

DeleteUserSignup deletes the specified UserSignup

func (*Reconciler) Reconcile

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

Reconcile reads that state of the cluster for a UserSignup object and makes changes based on the state read and what is in the UserSignup.Spec Note: The Controller will requeue the Request to be processed again if the returned error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.

func (*Reconciler) SetupWithManager

func (r *Reconciler) SetupWithManager(mgr manager.Manager) error

SetupWithManager sets up the controller with the Manager.

type StatusUpdater

type StatusUpdater func(userAcc *toolchainv1alpha1.UserSignup, message string) error

Jump to

Keyboard shortcuts

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