usersignup

package
v0.0.0-...-e809054 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapBannedUserToUserSignup

func MapBannedUserToUserSignup(cl runtimeclient.Client) func(ctx context.Context, object runtimeclient.Object) []reconcile.Request

Types

type OnlyWhenAutomaticApprovalIsEnabled

type OnlyWhenAutomaticApprovalIsEnabled struct {
	// contains filtered or unexported fields
}

OnlyWhenAutomaticApprovalIsEnabled let the reconcile to be triggered only when the automatic approval is enabled

func (OnlyWhenAutomaticApprovalIsEnabled) Create

Create implements Predicate

func (OnlyWhenAutomaticApprovalIsEnabled) Delete

Delete implements Predicate

func (OnlyWhenAutomaticApprovalIsEnabled) Generic

Generic implements Predicate

func (OnlyWhenAutomaticApprovalIsEnabled) Update

Update implements default UpdateEvent filter for validating no generation change

type Reconciler

type Reconciler struct {
	*StatusUpdater
	Namespace      string
	Scheme         *runtime.Scheme
	SegmentClient  *segment.Client
	ClusterManager *capacity.ClusterManager
}

Reconciler reconciles a UserSignup object

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(ctx context.Context, mgr manager.Manager) error

SetupWithManager sets up the controller with the Manager.

type StatusUpdater

type StatusUpdater struct {
	Client runtimeclient.Client
}

func (*StatusUpdater) SetScheduledDeactivationStatus

func (u *StatusUpdater) SetScheduledDeactivationStatus(ctx context.Context, userSignup *toolchainv1alpha1.UserSignup, scheduledTime *metav1.Time) error

type StatusUpdaterFunc

type StatusUpdaterFunc func(ctx context.Context, userAcc *toolchainv1alpha1.UserSignup, message string) error

type UserSignupChangedPredicate

type UserSignupChangedPredicate struct {
	controllerpredicate.Funcs
}

func (UserSignupChangedPredicate) Update

Update filters update events and let the reconcile loop to be triggered when any of the following conditions is met: * generation number has changed * annotation toolchain.dev.openshift.com/user-email has changed * annotation toolchain.dev.openshift.com/migration-in-progress was removed * label toolchain.dev.openshift.com/email-hash has changed

Jump to

Keyboard shortcuts

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