Documentation
¶
Index ¶
Constants ¶
const ( DefaultPGPort = 5432 DefaultBouncerPort = 6432 )
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" )
const DefaultReplicationSlotPlugin = "pgoutput"
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
ReconcileTimeout time.Duration
}
PostgresqlDatabaseReconciler reconciles a PostgresqlDatabase object.
func (*PostgresqlDatabaseReconciler) Reconcile ¶
func (r *PostgresqlDatabaseReconciler) 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. 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
ReconcileTimeout time.Duration
}
PostgresqlEngineConfigurationReconciler reconciles a PostgresqlEngineConfiguration object.
func (*PostgresqlEngineConfigurationReconciler) Reconcile ¶
func (r *PostgresqlEngineConfigurationReconciler) 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. 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 PostgresqlPublicationReconciler ¶
type PostgresqlPublicationReconciler struct {
Recorder record.EventRecorder
client.Client
Scheme *runtime.Scheme
ControllerRuntimeDetailedErrorTotal *prometheus.CounterVec
Log logr.Logger
ControllerName string
ReconcileTimeout time.Duration
}
PostgresqlPublicationReconciler reconciles a PostgresqlPublication object.
func (*PostgresqlPublicationReconciler) Reconcile ¶
func (r *PostgresqlPublicationReconciler) 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. Reconcile function to compare the state specified by the PostgresqlPublication 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.15.0/pkg/reconcile
func (*PostgresqlPublicationReconciler) SetupWithManager ¶
func (r *PostgresqlPublicationReconciler) 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
ReconcileTimeout time.Duration
}
PostgresqlUserRoleReconciler reconciles a PostgresqlUserRole object.
func (*PostgresqlUserRoleReconciler) Reconcile ¶
func (r *PostgresqlUserRoleReconciler) 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. 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.