Documentation ¶
Index ¶
- func JobShouldInQueue(job *batchv1.Job) bool
- func SetupAppWatcherWithReconciler(mgr ctrl.Manager, options controller.Options, r Controller) (err error)
- func SetupDataOpJobWatcherWithReconciler(mgr ctrl.Manager, options controller.Options, r Controller) (err error)
- func SetupWatcherForReconciler(mgr ctrl.Manager, options controller.Options, r Controller) (err error)
- func SetupWatcherForReconcilerWithDataset(mgr ctrl.Manager, options controller.Options, r Controller, runtimeType string) (err error)
- func SetupWatcherForWebhook(mgr ctrl.Manager, certBuilder *webhook.CertificateBuilder, caCert []byte) (err error)
- func ShouldInQueue(pod *corev1.Pod) bool
- type Controller
- type FakePodReconciler
- type FakeRuntimeReconciler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JobShouldInQueue ¶ added in v1.0.1
func SetupAppWatcherWithReconciler ¶ added in v0.8.0
func SetupAppWatcherWithReconciler(mgr ctrl.Manager, options controller.Options, r Controller) (err error)
func SetupDataOpJobWatcherWithReconciler ¶ added in v1.0.1
func SetupDataOpJobWatcherWithReconciler(mgr ctrl.Manager, options controller.Options, r Controller) (err error)
func SetupWatcherForReconciler ¶ added in v1.0.1
func SetupWatcherForReconciler(mgr ctrl.Manager, options controller.Options, r Controller) (err error)
func SetupWatcherForReconcilerWithDataset ¶ added in v1.0.1
func SetupWatcherForReconcilerWithDataset(mgr ctrl.Manager, options controller.Options, r Controller, runtimeType string) (err error)
func SetupWatcherForWebhook ¶ added in v0.8.0
func ShouldInQueue ¶ added in v0.8.0
Types ¶
type Controller ¶
type Controller interface { // Reconciler performs a full reconciliation for the object referred to by the Request. // The Controller will requeue the Request to be processed again if an error is non-nil or // Result.Requeue is true, otherwise upon completion it will remove the work from the queue. Reconcile(context context.Context, req ctrl.Request) (ctrl.Result, error) // ControllerName gets the name of controller ControllerName() string // ManagedResource which is handled by controller ManagedResource() client.Object }
This controller will be moved to RuntimeReconcilerInterface later
type FakePodReconciler ¶ added in v0.8.0
type FakePodReconciler struct { }
func (*FakePodReconciler) ControllerName ¶ added in v0.8.0
func (r *FakePodReconciler) ControllerName() string
ControllerName gets the name of controller
func (*FakePodReconciler) ManagedResource ¶ added in v0.8.0
func (r *FakePodReconciler) ManagedResource() (c client.Object)
ManagedResource which is handled by controller
func (*FakePodReconciler) Reconcile ¶ added in v0.8.0
func (r *FakePodReconciler) Reconcile(context context.Context, req ctrl.Request) (result ctrl.Result, err error)
Reconcile Reconciler performs a full reconciliation for the object referred to by the Request. The Controller will requeue the Request to be processed again if an error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.
type FakeRuntimeReconciler ¶
type FakeRuntimeReconciler struct { }
func (*FakeRuntimeReconciler) ControllerName ¶
func (r *FakeRuntimeReconciler) ControllerName() string
ControllerName gets the name of controller
func (*FakeRuntimeReconciler) ManagedResource ¶
func (r *FakeRuntimeReconciler) ManagedResource() (c client.Object)
ManagedResource which is handled by controller
func (*FakeRuntimeReconciler) Reconcile ¶
func (r *FakeRuntimeReconciler) Reconcile(context context.Context, req ctrl.Request) (result ctrl.Result, err error)
Reconciler performs a full reconciliation for the object referred to by the Request. The Controller will requeue the Request to be processed again if an error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.