Skip to content

Commit

Permalink
Add Postgres New Version Support
Browse files Browse the repository at this point in the history
Signed-off-by: souravbiswassanto <[email protected]>
  • Loading branch information
souravbiswassanto committed Dec 20, 2024
1 parent d7bae1e commit 66d6d88
Show file tree
Hide file tree
Showing 33 changed files with 1,372 additions and 18 deletions.
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
12 changes: 12 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,6 +140,10 @@
],
"postgres-backup-16.1": [
"timescaledb-2.14.2-pg16",
"17.2-bookworm",
"17.2",
"16.6-bookworm",
"16.6",
"16.4-bookworm",
"16.4",
"16.2-bullseye-postgis",
Expand Down
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.10.0)_12.17-alpine
coordinator:
image: ghcr.io/kubedb/pg-coordinator:v0.33.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:
- '>= 13.13, <= 16.4'
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.10.0)_12.17-bookworm
coordinator:
image: ghcr.io/kubedb/pg-coordinator:v0.33.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:
- '>= 13.13, <= 16.4'
version: "12.22"
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.10.0)_13.13-alpine
coordinator:
image: ghcr.io/kubedb/pg-coordinator:v0.33.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:
- '>= 14.10, <= 16.4'
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.10.0)_13.13-bookworm
coordinator:
image: ghcr.io/kubedb/pg-coordinator:v0.33.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:
- '>= 14.10, <= 16.4'
version: "13.18"
2 changes: 1 addition & 1 deletion catalog/kubedb/raw/postgres/postgres-14.10-official.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,5 @@ spec:
version: v2024.4.27
updateConstraints:
allowlist:
- '>= 14.13, <= 16.4'
- '>= 14.13, <= 16.6'
version: "14.10"
2 changes: 1 addition & 1 deletion catalog/kubedb/raw/postgres/postgres-14.13-official.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,5 @@ spec:
version: v2024.4.27
updateConstraints:
allowlist:
- '>= 15.5, <= 16.4'
- '>= 15.5, <= 16.6'
version: "14.13"
Loading

0 comments on commit 66d6d88

Please sign in to comment.