Documentation ¶
Index ¶
Constants ¶
View Source
const ( // LabelCluster is used to label PostgresCluster objects. LabelCluster = labelPrefix + "cluster" // LabelData is used to identify Pods and Volumes store Postgres data. LabelData = labelPrefix + "data" // LabelRole is used to identify object roles. LabelRole = labelPrefix + "role" )
View Source
const ( // ContainerDatabase is the name of the container running PostgreSQL and // supporting tools: Patroni, pgBackRest, etc. ContainerDatabase = "database" )
View Source
const (
// DataPostgres is a LabelData value that indicates the object has PostgreSQL data.
DataPostgres = "postgres"
)
View Source
const ( // RolePatroniLeader is the LabelRole that Patroni sets on the Pod that is // currently the leader. RolePatroniLeader = "master" )
Variables ¶
This section is empty.
Functions ¶
func NewPodExecutor ¶
NewPodExecutor returns an executor function. It is used when commands are run from a Container shell using an 'exec' command. The RBAC settings required for this are "resources=pods/exec,verbs=create"
func PrimaryInstanceLabels ¶
PrimaryInstanceLabels provides labels for a PostgreSQL cluster primary instance
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.