controllers

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SSL_DISABLED  = "disabled"
	SSL_REQUIRED  = "required"
	SSL_VERIFY_CA = "verify_ca"
)
View Source
const (
	DbSecretAnnotation = "db-operator/database"
)

Variables

View Source
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) Reconcile

func (r *DatabaseReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

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) Reconcile

func (r *DbUserReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*DbUserReconciler) SetupWithManager

func (r *DbUserReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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