Documentation
¶
Index ¶
- Constants
- Variables
- func FindStatusPlatform(platformsStatus []v1beta1.PlatformStatus, platformName v1beta1.PlatformName) *v1beta1.PlatformStatus
- func GetInstallNamespace() (string, error)
- type DBaaSConnectionReconciler
- type DBaaSDefaultPolicyReconciler
- type DBaaSInstanceReconciler
- type DBaaSInventoryReconciler
- type DBaaSPlatformReconciler
- type DBaaSPolicyReconciler
- type DBaaSProviderReconciler
- type DBaaSReconciler
- type EventHandlerWithDelete
Constants ¶
const ( RequeueDelaySuccess = 10 * time.Second RequeueDelayError = 5 * time.Second )
Constants for requeue
const RDS_PROVIDER string = "rds-registration"
Variables ¶
var (
InstallNamespaceEnvVar = "INSTALL_NAMESPACE"
)
InstallNamespaceEnvVar is the constant for env variable INSTALL_NAMESPACE
Functions ¶
func FindStatusPlatform ¶ added in v0.4.0
func FindStatusPlatform(platformsStatus []v1beta1.PlatformStatus, platformName v1beta1.PlatformName) *v1beta1.PlatformStatus
FindStatusPlatform finds the platformName in platforms status.
func GetInstallNamespace ¶
GetInstallNamespace returns the operator's install Namespace
Types ¶
type DBaaSConnectionReconciler ¶
type DBaaSConnectionReconciler struct {
*DBaaSReconciler
}
DBaaSConnectionReconciler reconciles a DBaaSConnection object
func (*DBaaSConnectionReconciler) Delete ¶ added in v0.4.0
func (r *DBaaSConnectionReconciler) Delete(e event.DeleteEvent) error
Delete implements a handler for the Delete event.
func (*DBaaSConnectionReconciler) Reconcile ¶
func (r *DBaaSConnectionReconciler) 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.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.8.3/pkg/reconcile
func (*DBaaSConnectionReconciler) SetupWithManager ¶
func (r *DBaaSConnectionReconciler) SetupWithManager(mgr ctrl.Manager) (controller.Controller, error)
SetupWithManager sets up the controller with the Manager.
type DBaaSDefaultPolicyReconciler ¶ added in v0.2.0
type DBaaSDefaultPolicyReconciler struct {
*DBaaSReconciler
}
DBaaSDefaultPolicyReconciler reconciles a default DBaaSPolicy object
func (*DBaaSDefaultPolicyReconciler) Reconcile ¶ added in v0.2.0
func (r *DBaaSDefaultPolicyReconciler) Reconcile(ctx context.Context, _ 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.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.8.3/pkg/reconcile
func (*DBaaSDefaultPolicyReconciler) SetupWithManager ¶ added in v0.2.0
func (r *DBaaSDefaultPolicyReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type DBaaSInstanceReconciler ¶ added in v0.1.4
type DBaaSInstanceReconciler struct {
*DBaaSReconciler
}
DBaaSInstanceReconciler reconciles a DBaaSInstance object
func (*DBaaSInstanceReconciler) Delete ¶ added in v0.4.0
func (r *DBaaSInstanceReconciler) Delete(e event.DeleteEvent) error
Delete implements a handler for the Delete event.
func (*DBaaSInstanceReconciler) Reconcile ¶ added in v0.1.4
func (r *DBaaSInstanceReconciler) 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.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.9.2/pkg/reconcile
func (*DBaaSInstanceReconciler) SetupWithManager ¶ added in v0.1.4
func (r *DBaaSInstanceReconciler) SetupWithManager(mgr ctrl.Manager) (controller.Controller, error)
SetupWithManager sets up the controller with the Manager.
type DBaaSInventoryReconciler ¶
type DBaaSInventoryReconciler struct {
*DBaaSReconciler
}
DBaaSInventoryReconciler reconciles a DBaaSInventory object
func (*DBaaSInventoryReconciler) Delete ¶ added in v0.4.0
func (r *DBaaSInventoryReconciler) Delete(e event.DeleteEvent) error
Delete implements a handler for the Delete event.
func (*DBaaSInventoryReconciler) Reconcile ¶
func (r *DBaaSInventoryReconciler) 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.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.8.3/pkg/reconcile
func (*DBaaSInventoryReconciler) SetupWithManager ¶
func (r *DBaaSInventoryReconciler) SetupWithManager(mgr ctrl.Manager) (controller.Controller, error)
SetupWithManager sets up the controller with the Manager.
type DBaaSPlatformReconciler ¶
type DBaaSPlatformReconciler struct {
*DBaaSReconciler
Log logr.Logger
// contains filtered or unexported fields
}
DBaaSPlatformReconciler reconciles a DBaaSPlatform object
func (*DBaaSPlatformReconciler) Delete ¶ added in v0.4.0
func (r *DBaaSPlatformReconciler) Delete(e event.DeleteEvent) error
Delete implements a handler for the Delete event.
func (*DBaaSPlatformReconciler) Reconcile ¶
func (r *DBaaSPlatformReconciler) 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.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.8.3/pkg/reconcile
func (*DBaaSPlatformReconciler) SetupWithManager ¶
func (r *DBaaSPlatformReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type DBaaSPolicyReconciler ¶ added in v0.2.0
type DBaaSPolicyReconciler struct {
*DBaaSReconciler
}
DBaaSPolicyReconciler reconciles a DBaaSPolicy object
func (*DBaaSPolicyReconciler) Delete ¶ added in v0.4.0
func (r *DBaaSPolicyReconciler) Delete(e event.DeleteEvent) error
Delete implements a handler for the Delete event.
func (*DBaaSPolicyReconciler) Reconcile ¶ added in v0.2.0
func (r *DBaaSPolicyReconciler) 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.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.8.3/pkg/reconcile
func (*DBaaSPolicyReconciler) SetupWithManager ¶ added in v0.2.0
func (r *DBaaSPolicyReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type DBaaSProviderReconciler ¶
type DBaaSProviderReconciler struct {
*DBaaSReconciler
ConnectionCtrl controller.Controller
InventoryCtrl controller.Controller
InstanceCtrl controller.Controller
}
DBaaSProviderReconciler reconciles a DBaaSProvider object
func (*DBaaSProviderReconciler) Delete ¶ added in v0.4.0
func (r *DBaaSProviderReconciler) Delete(e event.DeleteEvent) error
Delete implements a handler for the Delete event.
func (*DBaaSProviderReconciler) Reconcile ¶
func (r *DBaaSProviderReconciler) 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.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.8.3/pkg/reconcile
func (*DBaaSProviderReconciler) SetupWithManager ¶
func (r *DBaaSProviderReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type DBaaSReconciler ¶
DBaaSReconciler defines common methods used by other reconcilers
type EventHandlerWithDelete ¶ added in v0.4.0
type EventHandlerWithDelete struct {
handler.EnqueueRequestForObject
Controller interface {
Delete(e event.DeleteEvent) error
}
}
EventHandlerWithDelete is an extension of EnqueueRequestForObject that will _not_ trigger a reconciliation for a Delete event. Instead, it will call an external controller's Delete() method and pass the event argument unchanged.
func (*EventHandlerWithDelete) Delete ¶ added in v0.4.0
func (d *EventHandlerWithDelete) Delete(e event.DeleteEvent, _ workqueue.RateLimitingInterface)
Delete implements a handler for the Delete event.