Documentation
¶
Index ¶
- Constants
- Variables
- func NewReconciler(client client.Client, ...) *utils.Reconciler[*v1alpha1.ChallengeInstance]
- func WithAddFinalizerReconciler() utils.ReconcilerOption[*v1alpha1.ChallengeInstance]
- func WithDefaultReconcilers(recorder record.EventRecorder) utils.ReconcilerOption[*v1alpha1.ChallengeInstance]
- func WithDeleteReconciler() utils.ReconcilerOption[*v1alpha1.ChallengeInstance]
- func WithManifestsReconciler(recorder record.EventRecorder) utils.ReconcilerOption[*v1alpha1.ChallengeInstance]
- func WithNamespaceReconciler() utils.ReconcilerOption[*v1alpha1.ChallengeInstance]
- func WithRemoveFinalizerReconciler() utils.ReconcilerOption[*v1alpha1.ChallengeInstance]
- func WithStatusReconciler() utils.ReconcilerOption[*v1alpha1.ChallengeInstance]
- type AddFinalizerReconciler
- type DeleteReconciler
- type ManifestsReconciler
- type NamespaceReconciler
- type RemoveFinalizerReconciler
- type StatusReconciler
Constants ¶
View Source
const (
DefaultExpirationSeconds = int64(15 * 60) // 15 minutes
)
Variables ¶
View Source
var FinalizerName = "ctf.backbone81/challenge-instance"
Functions ¶
func NewReconciler ¶
func NewReconciler(client client.Client, options ...utils.ReconcilerOption[*v1alpha1.ChallengeInstance]) *utils.Reconciler[*v1alpha1.ChallengeInstance]
func WithAddFinalizerReconciler ¶
func WithAddFinalizerReconciler() utils.ReconcilerOption[*v1alpha1.ChallengeInstance]
func WithDefaultReconcilers ¶
func WithDefaultReconcilers(recorder record.EventRecorder) utils.ReconcilerOption[*v1alpha1.ChallengeInstance]
WithDefaultReconcilers returns a reconciler option which enables the default sub-reconcilers.
func WithDeleteReconciler ¶
func WithDeleteReconciler() utils.ReconcilerOption[*v1alpha1.ChallengeInstance]
func WithManifestsReconciler ¶
func WithManifestsReconciler(recorder record.EventRecorder) utils.ReconcilerOption[*v1alpha1.ChallengeInstance]
func WithNamespaceReconciler ¶
func WithNamespaceReconciler() utils.ReconcilerOption[*v1alpha1.ChallengeInstance]
func WithRemoveFinalizerReconciler ¶
func WithRemoveFinalizerReconciler() utils.ReconcilerOption[*v1alpha1.ChallengeInstance]
func WithStatusReconciler ¶
func WithStatusReconciler() utils.ReconcilerOption[*v1alpha1.ChallengeInstance]
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)
Click to show internal directories.
Click to hide internal directories.