mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-06 12:45:16 +02:00
Extend Postgres manifest with new params
This commit is contained in:
@@ -25,6 +25,7 @@ type PostgresSpec struct {
|
||||
Volume `json:"volume,omitempty"`
|
||||
Patroni `json:"patroni,omitempty"`
|
||||
Resources `json:"resources,omitempty"`
|
||||
LogicalBackup `json:"logical_backup,omitempty"`
|
||||
|
||||
TeamID string `json:"teamId"`
|
||||
DockerImage string `json:"dockerImage,omitempty"`
|
||||
@@ -127,3 +128,12 @@ type UserFlags []string
|
||||
|
||||
// PostgresStatus contains status of the PostgreSQL cluster (running, creation failed etc.)
|
||||
type PostgresStatus string
|
||||
|
||||
// CronSchedule is a convenience alias for string
|
||||
type CronSchedule string
|
||||
|
||||
// LogicalBackup contains config of a k8s cron job responsible for running pg_dumpall
|
||||
type LogicalBackup struct {
|
||||
EnableLogicalBackup bool `json:"enable_logical_backup,omitempty"`
|
||||
LogicalBackupSchedule CronSchedule `json:"logical_backup_schedule,omitempty"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user