Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Delays for requeing each type of event // For example: when a new cluster is created // first sync of its state will be done after REQUEUE_NEW time, // next sync will be done in REQUEUE_IN_PROGRES REQUEUE_NEW = 20 * time.Second REQUEUE_UPDATE = 20 * time.Second REQUEUE_IN_PROGRES = 10 * time.Second REQUEUE_DELETE = 20 * time.Second REQUEUE_AFTER_ERROR = 30 * time.Second )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ImputManifestValdator ¶
ImputManifestValidator validates InputManifest containing the input-manifest
func (*ImputManifestValdator) ValidateCreate ¶
ValidateCreate defines the logic when a kubernetes obj resource is created
func (*ImputManifestValdator) ValidateDelete ¶
ValidateDelete defines the logic when a kubernetes obj resource is deleted
func (*ImputManifestValdator) ValidateUpdate ¶
func (v *ImputManifestValdator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) error
ValidateUpdate defines the logic when a kubernetes obj resource is updated
type InputManifestReconciler ¶
type InputManifestReconciler struct {
Scheme *runtime.Scheme
Recorder record.EventRecorder
Logger logr.Logger
*usecases.Usecases
// contains filtered or unexported fields
}
InputManifestReconciler reconciles a InputManifest object
func New ¶
func New(kclient client.Client, scheme *runtime.Scheme, logger logr.Logger, recorder record.EventRecorder, usecase usecases.Usecases) *InputManifestReconciler
New returns a new controller for InputManifest resource
func (*InputManifestReconciler) Reconcile ¶
func (r *InputManifestReconciler) 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.
func (*InputManifestReconciler) SetupWithManager ¶
func (r *InputManifestReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Click to show internal directories.
Click to hide internal directories.