postgresql

package
v0.0.0-...-56c3f64 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPGPort      = 5432
	DefaultBouncerPort = 6432
)
View Source
const (
	ListLimit                                  = 10
	Login0Suffix                               = "-0"
	Login1Suffix                               = "-1"
	DefaultWorkGeneratedSecretNamePrefix       = "pgcreds-work-" //nolint: gosec // Ignore this false positive
	DefaultWorkGeneratedSecretNameRandomLength = 20
	UsernameSecretKey                          = "USERNAME"
	PasswordSecretKey                          = "PASSWORD"
	ManagedPasswordSize                        = 15

	SecretMainKeyPostgresURL     = "POSTGRES_URL"      //nolint:gosec // Nothing here
	SecretMainKeyPostgresURLArgs = "POSTGRES_URL_ARGS" //nolint:gosec // Nothing here
	SecretMainKeyPassword        = "PASSWORD"
	SecretMainKeyLogin           = "LOGIN"
	SecretMainKeyDatabase        = "DATABASE"
	SecretMainKeyHost            = "HOST"
	SecretMainKeyPort            = "PORT"
	SecretMainKeyArgs            = "ARGS"

	SecretKeyReplicaPrefix = "REPLICA"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PostgresqlDatabaseReconciler

type PostgresqlDatabaseReconciler struct {
	Recorder record.EventRecorder
	client.Client
	Scheme                              *runtime.Scheme
	ControllerRuntimeDetailedErrorTotal *prometheus.CounterVec
	Log                                 logr.Logger
	ControllerName                      string
}

PostgresqlDatabaseReconciler reconciles a PostgresqlDatabase object.

func (*PostgresqlDatabaseReconciler) Reconcile

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. Modify the Reconcile function to compare the state specified by the PostgresqlDatabase 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.12.1/pkg/reconcile

func (*PostgresqlDatabaseReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type PostgresqlEngineConfigurationReconciler

type PostgresqlEngineConfigurationReconciler struct {
	Recorder record.EventRecorder
	client.Client
	Scheme                              *runtime.Scheme
	ControllerRuntimeDetailedErrorTotal *prometheus.CounterVec
	Log                                 logr.Logger
	ControllerName                      string
}

PostgresqlEngineConfigurationReconciler reconciles a PostgresqlEngineConfiguration object.

func (*PostgresqlEngineConfigurationReconciler) Reconcile

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. Modify the Reconcile function to compare the state specified by the PostgresqlEngineConfiguration 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.12.1/pkg/reconcile

func (*PostgresqlEngineConfigurationReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type PostgresqlUserRoleReconciler

type PostgresqlUserRoleReconciler struct {
	Recorder record.EventRecorder
	client.Client
	Scheme                              *runtime.Scheme
	ControllerRuntimeDetailedErrorTotal *prometheus.CounterVec
	Log                                 logr.Logger
	ControllerName                      string
}

PostgresqlUserRoleReconciler reconciles a PostgresqlUserRole object.

func (*PostgresqlUserRoleReconciler) Reconcile

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. Modify the Reconcile function to compare the state specified by the PostgresqlUserRole 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.12.1/pkg/reconcile

func (*PostgresqlUserRoleReconciler) SetupWithManager

func (r *PostgresqlUserRoleReconciler) 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