pgbouncer

package
v1.15.5 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: Apache-2.0 Imports: 13 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 (
	// PgbouncerPoolerSpecHash is the annotation added to the deployment to tell
	// the hash of the Pooler Specification
	PgbouncerPoolerSpecHash = specs.MetadataNamespace + "/poolerSpecHash"

	// PgbouncerNameLabel is the label of the pgbouncer pod used by default
	PgbouncerNameLabel = specs.MetadataNamespace + "/poolerName"

	// DefaultPgbouncerImage is the name of the pgbouncer image used by default
	DefaultPgbouncerImage = "ghcr.io/cloudnative-pg/pgbouncer:1.17.0"
)

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) *corev1.Service

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

This section is empty.

Jump to

Keyboard shortcuts

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