challengeinstance

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultExpirationSeconds = int64(15 * 60) // 15 minutes
)

Variables

View Source
var FinalizerName = "ctf.backbone81/challenge-instance"

Functions

func WithDefaultReconcilers

func WithDefaultReconcilers(recorder record.EventRecorder) utils.ReconcilerOption[*v1alpha1.ChallengeInstance]

WithDefaultReconcilers returns a reconciler option which enables the default sub-reconcilers.

Types

type AddFinalizerReconciler

type AddFinalizerReconciler struct {
	utils.DefaultSubReconciler
}

AddFinalizerReconciler is responsible for adding the finalizer to the challenge instance.

func NewAddFinalizerReconciler

func NewAddFinalizerReconciler(client client.Client) *AddFinalizerReconciler

func (*AddFinalizerReconciler) Reconcile

func (r *AddFinalizerReconciler) Reconcile(ctx context.Context, challengeInstance *v1alpha1.ChallengeInstance) (ctrl.Result, error)

type DeleteReconciler

type DeleteReconciler struct {
	utils.DefaultSubReconciler
}

DeleteReconciler is responsible for deleting the challenge instance when it is expired.

func NewDeleteReconciler

func NewDeleteReconciler(client client.Client) *DeleteReconciler

func (*DeleteReconciler) Reconcile

func (r *DeleteReconciler) Reconcile(ctx context.Context, challengeInstance *v1alpha1.ChallengeInstance) (ctrl.Result, error)

type ManifestsReconciler

type ManifestsReconciler struct {
	utils.DefaultSubReconciler
	// contains filtered or unexported fields
}

ManifestsReconciler is responsible for creating the manifests for the challenge instance.

func NewManifestsReconciler

func NewManifestsReconciler(client client.Client, recorder record.EventRecorder) *ManifestsReconciler

func (*ManifestsReconciler) Reconcile

func (r *ManifestsReconciler) Reconcile(ctx context.Context, challengeInstance *v1alpha1.ChallengeInstance) (ctrl.Result, error)

type NamespaceReconciler

type NamespaceReconciler struct {
	utils.DefaultSubReconciler
}

NamespaceReconciler is responsible for creating the namespace for the challenge instance.

func NewNamespaceReconciler

func NewNamespaceReconciler(client client.Client) *NamespaceReconciler

func (*NamespaceReconciler) Reconcile

func (r *NamespaceReconciler) Reconcile(ctx context.Context, challengeInstance *v1alpha1.ChallengeInstance) (ctrl.Result, error)

type RemoveFinalizerReconciler

type RemoveFinalizerReconciler struct {
	utils.DefaultSubReconciler
}

RemoveFinalizerReconciler is responsible for removing the finalizer from the challenge instance.

func NewRemoveFinalizerReconciler

func NewRemoveFinalizerReconciler(client client.Client) *RemoveFinalizerReconciler

func (*RemoveFinalizerReconciler) Reconcile

func (r *RemoveFinalizerReconciler) Reconcile(ctx context.Context, challengeInstance *v1alpha1.ChallengeInstance) (ctrl.Result, error)

type StatusReconciler

type StatusReconciler struct {
	utils.DefaultSubReconciler
}

StatusReconciler is responsible for reconciling the status of the challenge instance.

func NewStatusReconciler

func NewStatusReconciler(client client.Client) *StatusReconciler

func (*StatusReconciler) Reconcile

func (r *StatusReconciler) Reconcile(ctx context.Context, challengeInstance *v1alpha1.ChallengeInstance) (ctrl.Result, error)

Jump to

Keyboard shortcuts

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