Extend Postgres manifest with new params

This commit is contained in:
Sergey Dudoladov
2019-01-08 12:56:55 +01:00
parent f7058c754d
commit ad397045f7
4 changed files with 34 additions and 0 deletions
@@ -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"`
}