Documentation
¶
Index ¶
- Constants
- func Deploy(platform *platform.Platform) error
- func GetOrCreateDB(p *platform.Platform, config postgres.ClusterConfig) (*types.DB, error)
- func GetPatroniClient(p *platform.Platform, namespace, clusterName string) (*http.Client, error)
- func Test(p *platform.Platform, test *console.TestResults)
- func TestCloneDBFromWAL(p *platform.Platform, test *console.TestResults)
- func TestLogicalBackupE2E(p *platform.Platform, test *console.TestResults)
- type ClusterResponse
- type ClusterResponseMember
- type Link
Constants ¶
View Source
const (
Namespace = "postgres-operator"
)
Variables ¶
This section is empty.
Functions ¶
func GetOrCreateDB ¶
func GetPatroniClient ¶
func TestCloneDBFromWAL ¶ added in v0.36.0
func TestCloneDBFromWAL(p *platform.Platform, test *console.TestResults)
func TestLogicalBackupE2E ¶ added in v0.36.0
func TestLogicalBackupE2E(p *platform.Platform, test *console.TestResults)
TestLogicalBackupE2E will test the logical backup function that comes with the db.flanksource.com/PostgresqlDB by: - Create a PG Cluster with db.flanksource.com/PostgresqlDB - Insert test fixtures to the database - Trigger the backup CronJob so we can have a fresh logical backup of the cluster - Spin up a new PG Cluster with db.flanksource.com/PostgresqlDB - Run the restore command to restore the data of the first PG Cluster to the second cluster - Check the test fixtures is in the second cluster
Types ¶
type ClusterResponse ¶
type ClusterResponse struct {
Members []ClusterResponseMember `json:"members"`
}
type ClusterResponseMember ¶
Click to show internal directories.
Click to hide internal directories.