dbaas

package
v0.0.0-...-ac06175 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2023 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const (
	Dbaasproviderkind = "DBaaSProvider"
)

Variables

This section is empty.

Functions

func GetSyncPeriod

func GetSyncPeriod() time.Duration

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) Reconcile

func (r *DBaaSProviderReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

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

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

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

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL