Documentation ¶
Index ¶
- Constants
- func Add(mgr manager.Manager, name string, conn Connection) error
- type Connection
- type ReconcileDatabase
- func (r *ReconcileDatabase) CreateDatabase(client *mysql.Client, database *mysqlv1beta1.Database, ...) error
- func (r *ReconcileDatabase) CreateGrant(client *mysql.Client, database *mysqlv1beta1.Database, ...) error
- func (r *ReconcileDatabase) CreateUser(client *mysql.Client, database *mysqlv1beta1.Database, ...) error
- func (r *ReconcileDatabase) DeleteDatabase(client *mysql.Client, database *mysqlv1beta1.Database, ...) error
- func (r *ReconcileDatabase) DeleteGrant(client *mysql.Client, database *mysqlv1beta1.Database, ...) error
- func (r *ReconcileDatabase) DeleteUser(client *mysql.Client, database *mysqlv1beta1.Database, ...) error
- func (r *ReconcileDatabase) Reconcile(request reconcile.Request) (reconcile.Result, error)
- func (r *ReconcileDatabase) SyncStatus(database *mysqlv1beta1.Database, status mysqlv1beta1.DatabaseStatus) error
Constants ¶
const ( // Finalizer used to trigger a deletion of the user prior to the object being deleted. Finalizer = "databases.mysql.skpr.io" // ControllerName used for identifying which controller is performing an operation. ControllerName = "mysql-database-shared" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Connection ¶
Connection details users for provisioning databases, users and grants.
type ReconcileDatabase ¶
type ReconcileDatabase struct { ProvisionerName string client.Client Connection Connection // contains filtered or unexported fields }
ReconcileDatabase reconciles a Database object
func (*ReconcileDatabase) CreateDatabase ¶
func (r *ReconcileDatabase) CreateDatabase(client *mysql.Client, database *mysqlv1beta1.Database, conn mysqlv1beta1.DatabaseStatusConnection) error
CreateDatabase for the reconcile loop.
func (*ReconcileDatabase) CreateGrant ¶
func (r *ReconcileDatabase) CreateGrant(client *mysql.Client, database *mysqlv1beta1.Database, conn mysqlv1beta1.DatabaseStatusConnection) error
CreateGrant for the reconcile loop.
func (*ReconcileDatabase) CreateUser ¶
func (r *ReconcileDatabase) CreateUser(client *mysql.Client, database *mysqlv1beta1.Database, conn mysqlv1beta1.DatabaseStatusConnection) error
CreateUser for the reconcile loop.
func (*ReconcileDatabase) DeleteDatabase ¶
func (r *ReconcileDatabase) DeleteDatabase(client *mysql.Client, database *mysqlv1beta1.Database, conn mysqlv1beta1.DatabaseStatusConnection) error
DeleteDatabase for the reconcile loop.
func (*ReconcileDatabase) DeleteGrant ¶
func (r *ReconcileDatabase) DeleteGrant(client *mysql.Client, database *mysqlv1beta1.Database, conn mysqlv1beta1.DatabaseStatusConnection) error
DeleteGrant for the reconcile loop.
func (*ReconcileDatabase) DeleteUser ¶
func (r *ReconcileDatabase) DeleteUser(client *mysql.Client, database *mysqlv1beta1.Database, conn mysqlv1beta1.DatabaseStatusConnection) error
DeleteUser for the reconcile loop.
func (*ReconcileDatabase) Reconcile ¶
Reconcile reads that state of the cluster for a Database object and makes changes based on the state read and what is in the Database.Spec Automatically generate RBAC rules to allow the Controller to read and write Deployments +kubebuilder:rbac:groups=mysql.skpr.io,resources=databaseclaims,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=mysql.skpr.io,resources=databaseclaims/status,verbs=get;update;patch
func (*ReconcileDatabase) SyncStatus ¶
func (r *ReconcileDatabase) SyncStatus(database *mysqlv1beta1.Database, status mysqlv1beta1.DatabaseStatus) error
SyncStatus for the Database object.