Documentation ¶
Overview ¶
Package tablespaces contains the runner to declarative tablespace
Index ¶
- type TablespaceReconciler
- func (r *TablespaceReconciler) GetClient() client.Client
- func (r *TablespaceReconciler) GetCluster(ctx context.Context) (*apiv1.Cluster, error)
- func (r *TablespaceReconciler) Instance() *postgres.Instance
- func (r *TablespaceReconciler) Reconcile(ctx context.Context, _ reconcile.Request) (reconcile.Result, error)
- func (r *TablespaceReconciler) SetupWithManager(mgr ctrl.Manager) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TablespaceReconciler ¶
type TablespaceReconciler struct {
// contains filtered or unexported fields
}
TablespaceReconciler is a Kubernetes controller that ensures Tablespaces are created in Postgres
func NewTablespaceReconciler ¶
func NewTablespaceReconciler(instance *postgres.Instance, client client.Client) *TablespaceReconciler
NewTablespaceReconciler creates a new TablespaceReconciler
func (*TablespaceReconciler) GetClient ¶
func (r *TablespaceReconciler) GetClient() client.Client
GetClient returns the dynamic client that is being used for a certain reconciler
func (*TablespaceReconciler) GetCluster ¶
GetCluster gets the managed cluster through the client
func (*TablespaceReconciler) Instance ¶
func (r *TablespaceReconciler) Instance() *postgres.Instance
Instance returns the PostgreSQL instance that this reconciler is working on
func (*TablespaceReconciler) Reconcile ¶
func (r *TablespaceReconciler) Reconcile( ctx context.Context, _ reconcile.Request, ) (reconcile.Result, error)
Reconcile is the main reconciliation loop for the instance
func (*TablespaceReconciler) SetupWithManager ¶
func (r *TablespaceReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package infrastructure contains the structs and interfaces needed to manage declarative tablespace
|
Package infrastructure contains the structs and interfaces needed to manage declarative tablespace |
Click to show internal directories.
Click to hide internal directories.