Documentation ¶
Index ¶
Constants ¶
const ( SSL_DISABLED = "disabled" SSL_REQUIRED = "required" SSL_VERIFY_CA = "verify_ca" )
const (
DbSecretAnnotation = "db-operator/database"
)
Variables ¶
var ( // ErrNoNamespace indicates that a namespace could not be found for the current // environment ErrNoNamespace = errors.New("namespace not found for current environment") // ErrNoProxySupport is thrown when proxy creation is not supported ErrNoProxySupport = errors.New("no proxy supported backend type") )
Functions ¶
This section is empty.
Types ¶
type DatabaseReconciler ¶
type DatabaseReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme Recorder record.EventRecorder Interval time.Duration Conf *config.Config WatchNamespaces []string }
DatabaseReconciler reconciles a Database object
func (*DatabaseReconciler) SetupWithManager ¶
func (r *DatabaseReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type DbInstanceReconciler ¶
type DbInstanceReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme Interval time.Duration Conf *config.Config }
DbInstanceReconciler reconciles a DbInstance object
func (*DbInstanceReconciler) Reconcile ¶
func (r *DbInstanceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
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 DbInstance 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.7.2/pkg/reconcile
func (*DbInstanceReconciler) SetupWithManager ¶
func (r *DbInstanceReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type DbUserReconciler ¶
type DbUserReconciler struct { client.Client Scheme *runtime.Scheme Interval time.Duration Log logr.Logger Recorder record.EventRecorder CheckChanges bool }
DbUserReconciler reconciles a DbUser object
func (*DbUserReconciler) SetupWithManager ¶
func (r *DbUserReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.