yugabyte

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2020 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureYugabyteCluster

func ConfigureYugabyteCluster(_ context.Context, cm resource.Claim, cs resource.Class, mg resource.Managed) error

ConfigureYugabyteCluster configures the supplied instance (presumed to be a YugabyteCluster) using the supplied instance claim (presumed to be a PostgreSQLInstance) and instance class.

Types

type ClaimController

type ClaimController struct{}

ClaimController is responsible for adding the PostgreSQLInstance claim controller and its corresponding reconciler to the manager with any runtime configuration.

func (*ClaimController) SetupWithManager

func (c *ClaimController) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager adds a controller that reconciles PostgreSQLInstance instance claims.

type ClaimDefaultingController

type ClaimDefaultingController struct{}

A ClaimDefaultingController reconciles Cluster claims that omit their resource ref, class ref, and class selector by choosing a default Rook Yugabyte Cluster class if one exists.

func (*ClaimDefaultingController) SetupWithManager

func (c *ClaimDefaultingController) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the ClaimDefaultingController using the supplied manager.

type ClaimSchedulingController

type ClaimSchedulingController struct{}

A ClaimSchedulingController reconciles PostgreSQLInstance claims that include a class selector but omit their class and resource references by picking a random matching Rook Yugabyte Cluster class, if any.

func (*ClaimSchedulingController) SetupWithManager

func (c *ClaimSchedulingController) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the ClaimSchedulingController using the supplied manager.

type Controller

type Controller struct{}

Controller is responsible for adding the YugabyteCluster controller and its corresponding reconciler to the manager with any runtime configuration.

func (*Controller) SetupWithManager

func (c *Controller) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager creates a new YugabyteCluster Controller and adds it to the Manager with default RBAC. The Manager will set fields on the Controller and start it when the Manager is Started.

Jump to

Keyboard shortcuts

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