certificate

package
v1.28.4 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2026 License: Apache-2.0 Imports: 12 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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