Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MongoDBProvider ¶
func MongoDBProvider(ctx context.Context, instance v1beta1.GrowthbookInstance, username, password string) (storage.Disconnector, storage.Database, error)
MongoDBProvider returns a storage.Database for MongoDB
Types ¶
type GrowthbookInstanceReconciler ¶
type GrowthbookInstanceReconciler struct {
client.Client
Log logr.Logger
Scheme *runtime.Scheme
Recorder record.EventRecorder
DatabaseProvider func(ctx context.Context, instance v1beta1.GrowthbookInstance, username, password string) (storage.Disconnector, storage.Database, error)
}
GrowthbookInstance reconciles a GrowthbookInstance object
func (*GrowthbookInstanceReconciler) Reconcile ¶
func (r *GrowthbookInstanceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile GrowthbookInstances
func (*GrowthbookInstanceReconciler) SetupWithManager ¶
func (r *GrowthbookInstanceReconciler) SetupWithManager(mgr ctrl.Manager, opts GrowthbookInstanceReconcilerOptions) error
SetupWithManager adding controllers
type GrowthbookInstanceReconcilerOptions ¶
type GrowthbookInstanceReconcilerOptions struct {
MaxConcurrentReconciles int
}
Click to show internal directories.
Click to hide internal directories.