Documentation
¶
Index ¶
Constants ¶
const ( // DefaultRetryDelay applies to situations where we want to wait for certain time for some resources to be available DefaultRetryDelay = time.Second * 5 DefaultSyncPeriod = time.Minute * 180 InstallNamespaceEnvVar = "INSTALL_NAMESPACE" SuccessConnection string = "Successfully retrieved the connection detail\n" InstanceCreating ConditionReason = "Creating" InstanceCreationFailed ConditionReason = "CreationFailed" InstanceReady ConditionReason = "Ready" InstanceDeleted ConditionReason = "Deleted" InventorySyncOK ConditionReason = "SyncOK" InventoryNotFound ConditionReason = "InventoryNotFound" ConnectionReady ConditionReason = "Ready" ConnectionNotReady ConditionReason = "ConnectionNotReady" ProviderReady ConditionReason = "Ready" ProviderProcessingPending ConditionReason = "ProcessingPending" InputError ConditionReason = "InputError" BackendError ConditionReason = "BackendError" EndpointUnreachable ConditionReason = "EndpointUnreachable" AuthenticationError ConditionReason = "AuthenticationError" )
const (
Dbaasproviderkind = "DBaaSProvider"
)
Variables ¶
This section is empty.
Functions ¶
func GetSyncPeriod ¶
GetSyncPeriod get the sync period for next reconciliation
Types ¶
type ConditionReason ¶
type ConditionReason string
type DBaaSProviderReconciler ¶
type DBaaSProviderReconciler struct {
client.Client
*runtime.Scheme
Log logr.Logger
Clientset *kubernetes.Clientset
// contains filtered or unexported fields
}
func (*DBaaSProviderReconciler) SetupWithManager ¶
func (r *DBaaSProviderReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type ProviderConnectionReconciler ¶
type ProviderConnectionReconciler struct {
testutil.DBaaSProviderService
Scheme *runtime.Scheme
}
ProviderConnectionReconciler reconciles a ProviderConnection object
func (*ProviderConnectionReconciler) Reconcile ¶
func (r *ProviderConnectionReconciler) 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. TODO(user): Modify the Reconcile function to compare the state specified by the ProviderConnection object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.12.2/pkg/reconcile
func (*ProviderConnectionReconciler) SetupWithManager ¶
func (r *ProviderConnectionReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type ProviderInstanceReconciler ¶
type ProviderInstanceReconciler struct {
testutil.DBaaSProviderService
Scheme *runtime.Scheme
}
ProviderInstanceReconciler reconciles a ProviderInstance object
func (*ProviderInstanceReconciler) Reconcile ¶
func (r *ProviderInstanceReconciler) 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. TODO(user): Modify the Reconcile function to compare the state specified by the ProviderInstance object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.12.2/pkg/reconcile
func (*ProviderInstanceReconciler) SetupWithManager ¶
func (r *ProviderInstanceReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type ProviderInventoryReconciler ¶
type ProviderInventoryReconciler struct {
testutil.DBaaSProviderService
Scheme *runtime.Scheme
}
ProviderInventoryReconciler reconciles a ProviderInventory object
func (*ProviderInventoryReconciler) Reconcile ¶
func (r *ProviderInventoryReconciler) 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. TODO(user): Modify the Reconcile function to compare the state specified by the ProviderInventory object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.12.2/pkg/reconcile
func (*ProviderInventoryReconciler) SetupWithManager ¶
func (r *ProviderInventoryReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.