certificate

package
v1.28.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package certificate contains the reconciler for the PostgreSQL instance manager secrets

Index

Constants

This section is empty.

Variables

View Source
var ErrNoServerCertificateHandler = fmt.Errorf("no server certificate handler")

ErrNoServerCertificateHandler is raised when a new server certificate has been detected by the instance reconciler but no handler has been set.

Functions

This section is empty.

Types

type Reconciler

type Reconciler struct {
	// contains filtered or unexported fields
}

Reconciler returns a certificate reconciler

func NewReconciler

func NewReconciler(cli client.Client, serverHandler serverCertificateHandler) *Reconciler

NewReconciler creates a new certificate reconciler

func (*Reconciler) RefreshSecrets

func (r *Reconciler) RefreshSecrets(
	ctx context.Context,
	cluster *apiv1.Cluster,
) (bool, error)

RefreshSecrets is called when the PostgreSQL secrets are changed and will refresh the contents of the file inside the Pod, without reloading the actual PostgreSQL instance.

It returns a boolean flag telling if something changed. Usually the invoker will check that flag and reload the PostgreSQL instance it is up.

Jump to

Keyboard shortcuts

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