postgres

package
v0.0.0-...-67d8d79 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package postgres provides reconciliation logic for the PostgreSQL database component used by OpenShift Lightspeed for conversation cache storage.

This package manages:

  • PostgreSQL deployment and pod lifecycle
  • Database initialization and bootstrap secrets
  • PersistentVolumeClaim for data persistence
  • Service configuration for database access
  • ConfigMap for PostgreSQL configuration
  • Network policies for database security
  • CA certificate management for secure connections

The PostgreSQL instance is used to cache conversation history and maintain session state for the OLS application server. The main entry point is ReconcilePostgres, which ensures all PostgreSQL resources are properly configured.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GeneratePostgresBootstrapSecret

func GeneratePostgresBootstrapSecret(r reconciler.Reconciler, cr *olsv1alpha1.OLSConfig) (*corev1.Secret, error)

func GeneratePostgresConfigMap

func GeneratePostgresConfigMap(r reconciler.Reconciler, cr *olsv1alpha1.OLSConfig) (*corev1.ConfigMap, error)

func GeneratePostgresSecret

func GeneratePostgresSecret(r reconciler.Reconciler, cr *olsv1alpha1.OLSConfig) (*corev1.Secret, error)

func GeneratePostgresService

func GeneratePostgresService(r reconciler.Reconciler, cr *olsv1alpha1.OLSConfig) (*corev1.Service, error)

func GetPostgresCAConfigVolume

func GetPostgresCAConfigVolume() corev1.Volume

func GetPostgresCAVolumeMount

func GetPostgresCAVolumeMount(mountPath string) corev1.VolumeMount

func ReconcilePostgres

func ReconcilePostgres(r reconciler.Reconciler, ctx context.Context, olsconfig *olsv1alpha1.OLSConfig) error

ReconcilePostgres reconciles the Postgres server component

func UpdatePostgresDeployment

func UpdatePostgresDeployment(r reconciler.Reconciler, ctx context.Context, existingDeployment, desiredDeployment *appsv1.Deployment) error

updatePostgresDeployment updates the deployment based on CustomResource configuration.

Types

This section is empty.

Jump to

Keyboard shortcuts

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