diff --git a/postgresql.cnpg.io/backup_v1.json b/postgresql.cnpg.io/backup_v1.json index 38d0f96..6645033 100644 --- a/postgresql.cnpg.io/backup_v1.json +++ b/postgresql.cnpg.io/backup_v1.json @@ -28,6 +28,14 @@ ], "type": "object", "additionalProperties": false + }, + "target": { + "description": "The policy to decide which instance should perform this backup. If empty, it defaults to `cluster.spec.backup.target`. Available options are empty string, which will default to `primary` policy, `primary` to have backups run always on primary instances, `prefer-standby` to have backups run preferably on the most updated standby, if available.", + "enum": [ + "primary", + "prefer-standby" + ], + "type": "string" } }, "type": "object", @@ -127,6 +135,10 @@ "description": "The ID of the Barman backup", "type": "string" }, + "backupName": { + "description": "The Name of the Barman backup", + "type": "string" + }, "beginLSN": { "description": "The starting xlog", "type": "string" @@ -144,7 +156,7 @@ "type": "string" }, "destinationPath": { - "description": "The path where to store the backup (i.e. s3://bucket/path/to/folder) this path, with different destination folders, will be used for WALs and for data", + "description": "The path where to store the backup (i.e. s3://bucket/path/to/folder) this path, with different destination folders, will be used for WALs and for data. This may not be populated in case of errors.", "type": "string" }, "encryption": { @@ -337,9 +349,6 @@ "type": "string" } }, - "required": [ - "destinationPath" - ], "type": "object", "additionalProperties": false } diff --git a/postgresql.cnpg.io/cluster_v1.json b/postgresql.cnpg.io/cluster_v1.json index 67d5e65..e679ec9 100644 --- a/postgresql.cnpg.io/cluster_v1.json +++ b/postgresql.cnpg.io/cluster_v1.json @@ -3353,7 +3353,7 @@ "type": "string" }, "currentPrimaryFailingSinceTimestamp": { - "description": "The timestamp when the primary was detected to be unhealthy This field is reported only when spec.failoverDelay is populated", + "description": "The timestamp when the primary was detected to be unhealthy This field is reported when spec.failoverDelay is populated or during online upgrades", "type": "string" }, "currentPrimaryTimestamp": { @@ -3433,6 +3433,14 @@ "format": "int32", "type": "integer" }, + "lastFailedBackup": { + "description": "Stored as a date in RFC3339 format", + "type": "string" + }, + "lastSuccessfulBackup": { + "description": "Stored as a date in RFC3339 format", + "type": "string" + }, "latestGeneratedNode": { "description": "ID of the latest generated node (used to avoid node name clashing)", "type": "integer" diff --git a/postgresql.cnpg.io/pooler_v1.json b/postgresql.cnpg.io/pooler_v1.json index 5308d30..b9cf908 100644 --- a/postgresql.cnpg.io/pooler_v1.json +++ b/postgresql.cnpg.io/pooler_v1.json @@ -68,6 +68,13 @@ "description": "When set to `true`, PgBouncer will disconnect from the PostgreSQL server, first waiting for all queries to complete, and pause all new client connections until this value is set to `false` (default). Internally, the operator calls PgBouncer's `PAUSE` and `RESUME` commands.", "type": "boolean" }, + "pg_hba": { + "description": "PostgreSQL Host Based Authentication rules (lines to be appended to the pg_hba.conf file)", + "items": { + "type": "string" + }, + "type": "array" + }, "poolMode": { "default": "session", "description": "The pool mode", diff --git a/postgresql.cnpg.io/scheduledbackup_v1.json b/postgresql.cnpg.io/scheduledbackup_v1.json index 76d7662..b6c8221 100644 --- a/postgresql.cnpg.io/scheduledbackup_v1.json +++ b/postgresql.cnpg.io/scheduledbackup_v1.json @@ -50,6 +50,14 @@ "suspend": { "description": "If this backup is suspended or not", "type": "boolean" + }, + "target": { + "description": "The policy to decide which instance should perform this backup. If empty, it defaults to `cluster.spec.backup.target`. Available options are empty string, which will default to `primary` policy, `primary` to have backups run always on primary instances, `prefer-standby` to have backups run preferably on the most updated standby, if available.", + "enum": [ + "primary", + "prefer-standby" + ], + "type": "string" } }, "required": [