Documentation
¶
Overview ¶
Package pgbouncer contains the specification of the K8s resources generated by the CloudNativePG operator related to pgbouncer poolers
Index ¶
- Constants
- func Deployment(pooler *apiv1.Pooler, cluster *apiv1.Cluster) (*appsv1.Deployment, error)
- func Role(pooler *apiv1.Pooler) *v1.Role
- func RoleBinding(pooler *apiv1.Pooler) v1.RoleBinding
- func Service(pooler *apiv1.Pooler) *corev1.Service
- func ServiceAccount(pooler *apiv1.Pooler) *corev1.ServiceAccount
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 ¶
Deployment create the deployment of pgbouncer, given the configurations we have in the pooler specifications
func RoleBinding ¶
func RoleBinding(pooler *apiv1.Pooler) v1.RoleBinding
RoleBinding creates a role binding for a given pooler
func ServiceAccount ¶
func ServiceAccount(pooler *apiv1.Pooler) *corev1.ServiceAccount
ServiceAccount creates a service account for a given pooler
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.