pgbouncer

package
v1.23.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package pgbouncer contains the specification of the K8s resources generated by the CloudNativePG operator related to pgbouncer poolers

Index

Constants

View Source
const (
	// DefaultPgbouncerImage is the name of the pgbouncer image used by default
	DefaultPgbouncerImage = "ghcr.io/cloudnative-pg/pgbouncer:1.22.1"
)

Variables

This section is empty.

Functions

func Deployment

func Deployment(pooler *apiv1.Pooler, cluster *apiv1.Cluster) (*appsv1.Deployment, error)

Deployment create the deployment of pgbouncer, given the configurations we have in the pooler specifications

func Role

func Role(pooler *apiv1.Pooler) *v1.Role

Role creates a role for a given pooler

func RoleBinding

func RoleBinding(pooler *apiv1.Pooler) v1.RoleBinding

RoleBinding creates a role binding for a given pooler

func Service

func Service(pooler *apiv1.Pooler, cluster *apiv1.Cluster) (*corev1.Service, error)

Service create the specification for the service of pgbouncer

func ServiceAccount

func ServiceAccount(pooler *apiv1.Pooler) *corev1.ServiceAccount

ServiceAccount creates a service account for a given pooler

Types

type PoolerPodMonitorManager added in v1.18.5

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

PoolerPodMonitorManager builds the PodMonitor for the pooler resource

func NewPoolerPodMonitorManager added in v1.18.5

func NewPoolerPodMonitorManager(pooler *apiv1.Pooler) *PoolerPodMonitorManager

NewPoolerPodMonitorManager returns a new instance of PoolerPodMonitorManager

func (PoolerPodMonitorManager) BuildPodMonitor added in v1.18.5

func (c PoolerPodMonitorManager) BuildPodMonitor() *monitoringv1.PodMonitor

BuildPodMonitor builds a new PodMonitor object

func (PoolerPodMonitorManager) IsPodMonitorEnabled added in v1.18.5

func (c PoolerPodMonitorManager) IsPodMonitorEnabled() bool

IsPodMonitorEnabled returns a boolean indicating if the PodMonitor should exists or not

Jump to

Keyboard shortcuts

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