Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Postgres New Version Support #1479

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions catalog/kubedb/active_versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,28 +142,40 @@
"4.4.5"
],
"Postgres": [
"17.2-bookworm",
"17.2",
"16.6-bookworm",
"16.6",
"16.4-bookworm",
"16.4",
"timescaledb-2.14.2-pg16",
"16.2-bullseye-postgis",
"16.1-bookworm",
"16.1",
"15.10-bookworm",
"15.10",
"15.8-bookworm",
"15.8",
"timescaledb-2.14.2-pg15",
"15-bullseye-postgis",
"15.5-bookworm",
"15.5",
"14.15-bookworm",
"14.15",
"14.13-bookworm",
"14.13",
"timescaledb-2.14.2-pg14",
"14-bullseye-postgis",
"14.10-bookworm",
"14.10",
"13.18-bookworm",
"13.18",
"timescaledb-2.14.2-pg13",
"13-bullseye-postgis",
"13.13-bookworm",
"13.13",
"12.22-bookworm",
"12.22",
"12-bullseye-postgis",
"12.17-bookworm",
"12.17",
Expand Down
14 changes: 14 additions & 0 deletions catalog/kubedb/backup_tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,18 +104,24 @@
"11-bullseye-postgis"
],
"postgres-backup-12.4": [
"12.22-bookworm",
"12.22",
"12.17-bookworm",
"12.17",
"12-bullseye-postgis"
],
"postgres-backup-13.1": [
"timescaledb-2.14.2-pg13",
"13.18-bookworm",
"13.18",
"13.13-bookworm",
"13.13",
"13-bullseye-postgis"
],
"postgres-backup-14.0": [
"timescaledb-2.14.2-pg14",
"14.15-bookworm",
"14.15",
"14.13-bookworm",
"14.13",
"14.10-bookworm",
Expand All @@ -124,6 +130,8 @@
],
"postgres-backup-15.1": [
"timescaledb-2.14.2-pg15",
"15.10-bookworm",
"15.10",
"15.8-bookworm",
"15.8",
"15.5-bookworm",
Expand All @@ -132,12 +140,18 @@
],
"postgres-backup-16.1": [
"timescaledb-2.14.2-pg16",
"16.6-bookworm",
"16.6",
"16.4-bookworm",
"16.4",
"16.2-bullseye-postgis",
"16.1-bookworm",
"16.1"
],
"postgres-backup-17.2": [
"17.2-bookworm",
"17.2"
],
"redis-backup-5.0.13": [
"5.0.14"
],
Expand Down
4 changes: 2 additions & 2 deletions catalog/kubedb/raw/postgres/postgres-11.22-official.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ spec:
version: v2024.4.27
updateConstraints:
allowlist:
- '>= 12.17, <= 16.4'
- '>= 11.22, <= 16.6'
version: "11.22"

---
Expand Down Expand Up @@ -100,5 +100,5 @@ spec:
version: v2024.4.27
updateConstraints:
allowlist:
- '>= 12.17, <= 16.4'
- '>= 11.22, <= 16.6'
version: "11.22"
3 changes: 3 additions & 0 deletions catalog/kubedb/raw/postgres/postgres-11.22-postgis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,7 @@ spec:
version: v2024.4.27
- name: dbgate
version: v2024.4.27
updateConstraints:
allowlist:
- '>= 11.22, <= 16.6'
version: "11.22"
2 changes: 1 addition & 1 deletion catalog/kubedb/raw/postgres/postgres-12.17-official.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ spec:
version: v2024.4.27
updateConstraints:
allowlist:
- '>= 13.13, <= 16.4'
- '>= 12.22'
version: "12.17"

---
Expand Down
3 changes: 3 additions & 0 deletions catalog/kubedb/raw/postgres/postgres-12.18-postgis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,7 @@ spec:
version: v2024.4.27
- name: dbgate
version: v2024.4.27
updateConstraints:
allowlist:
- '>= 12.22'
version: "12.18"
104 changes: 104 additions & 0 deletions catalog/kubedb/raw/postgres/postgres-12.22-official.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
apiVersion: catalog.kubedb.com/v1alpha1
kind: PostgresVersion
metadata:
name: "12.22"
spec:
archiver:
addon:
name: postgres-addon
tasks:
fullBackup:
name: physical-backup
fullBackupRestore:
name: physical-backup-restore
manifestBackup:
name: manifest-backup
manifestRestore:
name: manifest-restore
volumeSnapshot:
name: volume-snapshot
walg:
image: ghcr.io/kubedb/postgres-archiver:(v0.11.0)_12.17-alpine
coordinator:
image: ghcr.io/kubedb/pg-coordinator:v0.34.0
db:
baseOS: alpine
image: ghcr.io/appscode-images/postgres:12.22-alpine
distribution: Official
exporter:
image: prometheuscommunity/postgres-exporter:v0.15.0
initContainer:
image: ghcr.io/kubedb/postgres-init:0.17.0
podSecurityPolicies:
databasePolicyName: postgres-db
securityContext:
runAsAnyNonRoot: false
runAsUser: 70
stash:
addon:
backupTask:
name: postgres-backup-12.4
restoreTask:
name: postgres-restore-12.4
ui:
- name: pgadmin
version: v2024.4.27
- name: dbgate
version: v2024.4.27
updateConstraints:
allowlist:
- '>= 12.22'
version: "12.22"

---
apiVersion: catalog.kubedb.com/v1alpha1
kind: PostgresVersion
metadata:
name: 12.22-bookworm
spec:
archiver:
addon:
name: postgres-addon
tasks:
fullBackup:
name: physical-backup
fullBackupRestore:
name: physical-backup-restore
manifestBackup:
name: manifest-backup
manifestRestore:
name: manifest-restore
volumeSnapshot:
name: volume-snapshot
walg:
image: ghcr.io/kubedb/postgres-archiver:(v0.11.0)_12.17-bookworm
coordinator:
image: ghcr.io/kubedb/pg-coordinator:v0.34.0
db:
baseOS: bookworm
image: ghcr.io/appscode-images/postgres:12.22-bookworm
distribution: Official
exporter:
image: prometheuscommunity/postgres-exporter:v0.15.0
initContainer:
image: ghcr.io/kubedb/postgres-init:0.17.0
podSecurityPolicies:
databasePolicyName: postgres-db
securityContext:
runAsAnyNonRoot: true
runAsUser: 999
stash:
addon:
backupTask:
name: postgres-backup-12.4
restoreTask:
name: postgres-restore-12.4
ui:
- name: pgadmin
version: v2024.4.27
- name: dbgate
version: v2024.4.27
updateConstraints:
allowlist:
- '>= 12.22'
version: "12.22"
4 changes: 2 additions & 2 deletions catalog/kubedb/raw/postgres/postgres-13.13-official.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ spec:
version: v2024.4.27
updateConstraints:
allowlist:
- '>= 14.10, <= 16.4'
- '>= 13.18'
version: "13.13"

---
Expand Down Expand Up @@ -100,5 +100,5 @@ spec:
version: v2024.4.27
updateConstraints:
allowlist:
- '>= 14.10, <= 16.4'
- ">= 13.18"
version: "13.13"
3 changes: 3 additions & 0 deletions catalog/kubedb/raw/postgres/postgres-13.14-postgis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,7 @@ spec:
version: v2024.4.27
- name: dbgate
version: v2024.4.27
updateConstraints:
allowlist:
- '>= 13.18'
version: "13.14"
104 changes: 104 additions & 0 deletions catalog/kubedb/raw/postgres/postgres-13.18-official.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
apiVersion: catalog.kubedb.com/v1alpha1
kind: PostgresVersion
metadata:
name: "13.18"
spec:
archiver:
addon:
name: postgres-addon
tasks:
fullBackup:
name: physical-backup
fullBackupRestore:
name: physical-backup-restore
manifestBackup:
name: manifest-backup
manifestRestore:
name: manifest-restore
volumeSnapshot:
name: volume-snapshot
walg:
image: ghcr.io/kubedb/postgres-archiver:(v0.11.0)_13.13-alpine
coordinator:
image: ghcr.io/kubedb/pg-coordinator:v0.34.0
db:
baseOS: alpine
image: ghcr.io/appscode-images/postgres:13.18-alpine
distribution: Official
exporter:
image: prometheuscommunity/postgres-exporter:v0.15.0
initContainer:
image: ghcr.io/kubedb/postgres-init:0.17.0
podSecurityPolicies:
databasePolicyName: postgres-db
securityContext:
runAsAnyNonRoot: false
runAsUser: 70
stash:
addon:
backupTask:
name: postgres-backup-13.1
restoreTask:
name: postgres-restore-13.1
ui:
- name: pgadmin
version: v2024.4.27
- name: dbgate
version: v2024.4.27
updateConstraints:
allowlist:
- '>= 13.18'
version: "13.18"

---
apiVersion: catalog.kubedb.com/v1alpha1
kind: PostgresVersion
metadata:
name: 13.18-bookworm
spec:
archiver:
addon:
name: postgres-addon
tasks:
fullBackup:
name: physical-backup
fullBackupRestore:
name: physical-backup-restore
manifestBackup:
name: manifest-backup
manifestRestore:
name: manifest-restore
volumeSnapshot:
name: volume-snapshot
walg:
image: ghcr.io/kubedb/postgres-archiver:(v0.11.0)_13.13-bookworm
coordinator:
image: ghcr.io/kubedb/pg-coordinator:v0.34.0
db:
baseOS: bookworm
image: ghcr.io/appscode-images/postgres:13.18-bookworm
distribution: Official
exporter:
image: prometheuscommunity/postgres-exporter:v0.15.0
initContainer:
image: ghcr.io/kubedb/postgres-init:0.17.0
podSecurityPolicies:
databasePolicyName: postgres-db
securityContext:
runAsAnyNonRoot: true
runAsUser: 999
stash:
addon:
backupTask:
name: postgres-backup-13.1
restoreTask:
name: postgres-restore-13.1
ui:
- name: pgadmin
version: v2024.4.27
- name: dbgate
version: v2024.4.27
updateConstraints:
allowlist:
- '>= 13.18'
version: "13.18"
4 changes: 2 additions & 2 deletions catalog/kubedb/raw/postgres/postgres-14.10-official.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ spec:
version: v2024.4.27
updateConstraints:
allowlist:
- '>= 14.13, <= 16.4'
- '>= 14.13'
version: "14.10"

---
Expand Down Expand Up @@ -100,5 +100,5 @@ spec:
version: v2024.4.27
updateConstraints:
allowlist:
- '>= 14.13, <= 16.4'
- '>= 14.13'
version: "14.10"
3 changes: 3 additions & 0 deletions catalog/kubedb/raw/postgres/postgres-14.11-postgis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,7 @@ spec:
version: v2024.4.27
- name: dbgate
version: v2024.4.27
updateConstraints:
allowlist:
- '>= 14.13'
version: "14.11"
Loading
Loading