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, cluster *apiv1.Cluster) *corev1.Service
- func ServiceAccount(pooler *apiv1.Pooler) *corev1.ServiceAccount
- type PoolerPodMonitorManager
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 ¶
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 ¶
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
Click to show internal directories.
Click to hide internal directories.