controllers

package
v0.0.0-...-3458948 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const DeleteRequestRequeueDuration time.Duration = 30 * time.Second
View Source
const OperationReqRequeueDuration time.Duration = 30 * time.Second

OperationReqRequeueDuration is the time interval to reconcile a OperationRequest if no error occurs

Variables

This section is empty.

Functions

func RandTimeDurationBetween

func RandTimeDurationBetween(min, max time.Duration) time.Duration

RandTimeDurationBetween get a random time duration between min and max

Types

type Config

type Config struct {
	config.Global `yaml:"global"`
	config.Kube   `yaml:"kube"`
}

type DeleteRequestReconciler

type DeleteRequestReconciler struct {
	client.Client
	Scheme   *runtime.Scheme
	Logger   logr.Logger
	Recorder record.EventRecorder
	// contains filtered or unexported fields
}

DeleteRequestReconciler reconciles a DeleteRequest object

func (*DeleteRequestReconciler) Reconcile

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

func (*DeleteRequestReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type OperationReqReconciler

type OperationReqReconciler struct {
	client.Client

	Logger   logr.Logger
	Scheme   *runtime.Scheme
	Recorder record.EventRecorder
	// contains filtered or unexported fields
}

OperationReqReconciler reconciles a Operationrequest object

func (*OperationReqReconciler) Reconcile

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

func (*OperationReqReconciler) SetupWithManager

func (r *OperationReqReconciler) SetupWithManager(mgr ctrl.Manager, opts util.RateLimiterOptions, expTime time.Duration, retTime time.Duration) error

SetupWithManager sets up the controller with the Manager.

type UserExpirationReconciler

type UserExpirationReconciler struct {
	Logger   logr.Logger
	Recorder record.EventRecorder

	*runtime.Scheme
	client.Client
	// contains filtered or unexported fields
}

UserExpirationReconciler reconciles a Secret object

func (*UserExpirationReconciler) Reconcile

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the Secret object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.11.0/pkg/reconcile

func (*UserExpirationReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type UserReconciler

type UserReconciler struct {
	Logger   logr.Logger
	Recorder record.EventRecorder

	*runtime.Scheme
	client.Client
	// contains filtered or unexported fields
}

UserReconciler reconciles a User object

func (*UserReconciler) Reconcile

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

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the User object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.12.2/pkg/reconcile

func (*UserReconciler) SetupWithManager

func (r *UserReconciler) SetupWithManager(mgr ctrl.Manager, opts utilcontroller.RateLimiterOptions,
	minRequeueDuration time.Duration, maxRequeueDuration time.Duration) error

SetupWithManager sets up the controller with the Manager.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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