Documentation ¶
Index ¶
- func MapBannedUserToUserSignup(cl runtimeclient.Client) func(object runtimeclient.Object) []reconcile.Request
- type OnlyWhenAutomaticApprovalIsEnabled
- func (OnlyWhenAutomaticApprovalIsEnabled) Create(_ runtimeevent.CreateEvent) bool
- func (OnlyWhenAutomaticApprovalIsEnabled) Delete(_ runtimeevent.DeleteEvent) bool
- func (p OnlyWhenAutomaticApprovalIsEnabled) Generic(e runtimeevent.GenericEvent) bool
- func (p OnlyWhenAutomaticApprovalIsEnabled) Update(e runtimeevent.UpdateEvent) bool
- type Reconciler
- type StatusUpdater
- type StatusUpdaterFunc
- type UserSignupChangedPredicate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MapBannedUserToUserSignup ¶
func MapBannedUserToUserSignup(cl runtimeclient.Client) func(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 ¶
func (OnlyWhenAutomaticApprovalIsEnabled) Create(_ runtimeevent.CreateEvent) bool
Create implements Predicate
func (OnlyWhenAutomaticApprovalIsEnabled) Delete ¶
func (OnlyWhenAutomaticApprovalIsEnabled) Delete(_ runtimeevent.DeleteEvent) bool
Delete implements Predicate
func (OnlyWhenAutomaticApprovalIsEnabled) Generic ¶
func (p OnlyWhenAutomaticApprovalIsEnabled) Generic(e runtimeevent.GenericEvent) bool
Generic implements Predicate
func (OnlyWhenAutomaticApprovalIsEnabled) Update ¶
func (p OnlyWhenAutomaticApprovalIsEnabled) Update(e runtimeevent.UpdateEvent) bool
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 ¶
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 ¶
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 ¶
func (p UserSignupChangedPredicate) Update(e runtimeevent.UpdateEvent) bool
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