Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger = log.WithValues("MySQL Cluster Controller")
Functions ¶
func Add ¶
func Add(mgr manager.Manager, r reconcile.Reconciler) error
add adds a new Controller to mgr with r as the reconcile.Reconciler
func NewReconciler ¶
func NewReconciler(mgr manager.Manager) reconcile.Reconciler
newReconciler returns a new reconcile.Reconciler
func NewService ¶
func NewService(app *opsv1alpha1.MysqlOperator) *corev1.Service
func NewStatefulSet ¶
func NewStatefulSet(app *opsv1alpha1.MysqlOperator) *appsv1.StatefulSet
Types ¶
type ReconcileMysqlOperator ¶
type ReconcileMysqlOperator struct {
// contains filtered or unexported fields
}
ReconcileMysqlOperator reconciles a MysqlOperator object
func (*ReconcileMysqlOperator) MysqlManager ¶
func (r *ReconcileMysqlOperator) MysqlManager()
func (*ReconcileMysqlOperator) Reconcile ¶
Reconcile reads that state of the cluster for a MysqlOperator object and makes changes based on the state read and what is in the MysqlOperator.Spec TODO(user): Modify this Reconcile function to implement your Controller logic. This example creates a Pod as an example Note: The Controller will requeue the Request to be processed again if the returned error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.
Click to show internal directories.
Click to hide internal directories.