Skip to content

Commit

Permalink
Add support for Postgres 15.1 12.13 13.9 14.6 (#563)
Browse files Browse the repository at this point in the history
Signed-off-by: Rakibul-Hossain <[email protected]>

Signed-off-by: Rakibul-Hossain <[email protected]>
  • Loading branch information
Rakibul Hossain authored Dec 2, 2022
1 parent 5c43e59 commit bb36850
Show file tree
Hide file tree
Showing 63 changed files with 634 additions and 85 deletions.
8 changes: 8 additions & 0 deletions catalog/active_versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,18 @@
"1.17.0"
],
"Postgres": [
"15.1",
"15.1-bullseye",
"14.6",
"14.6-bullseye",
"14.2",
"14.2-bullseye",
"timescaledb-2.5.0-pg14.1",
"14.1",
"14.1-bullseye-postgis",
"14.1-bullseye",
"13.9",
"13.9-bullseye",
"13.6",
"13.6-bullseye",
"13.5",
Expand All @@ -129,6 +135,8 @@
"timescaledb-2.1.0-pg13",
"13.2",
"13.2-debian",
"12.13",
"12.13-bullseye",
"12.10",
"12.10-bullseye",
"12.9",
Expand Down
10 changes: 10 additions & 0 deletions catalog/backup_tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@
],
"postgres-backup-12.4": [
"timescaledb-2.1.0-pg12",
"12.13",
"12.13-bullseye",
"12.10",
"12.10-bullseye",
"12.9",
Expand All @@ -175,6 +177,8 @@
],
"postgres-backup-13.1": [
"timescaledb-2.1.0-pg13",
"13.9",
"13.9-bullseye",
"13.6",
"13.6-bullseye",
"13.5",
Expand All @@ -185,12 +189,18 @@
],
"postgres-backup-14.0": [
"timescaledb-2.5.0-pg14.1",
"14.6",
"14.6-bullseye",
"14.2",
"14.2-bullseye",
"14.1",
"14.1-bullseye-postgis",
"14.1-bullseye"
],
"postgres-backup-15.1": [
"15.1",
"15.1-bullseye"
],
"postgres-backup-9.6.19": [
"9.6.24",
"9.6.24-bullseye",
Expand Down
4 changes: 2 additions & 2 deletions catalog/raw/postgres/postgres-10.16-official.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
exporter:
image: prometheuscommunity/postgres-exporter:v0.9.0
initContainer:
image: kubedb/postgres-init:0.5.0
image: kubedb/postgres-init:0.6.0
podSecurityPolicies:
databasePolicyName: postgres-db
securityContext:
Expand Down Expand Up @@ -45,7 +45,7 @@ spec:
exporter:
image: prometheuscommunity/postgres-exporter:v0.9.0
initContainer:
image: kubedb/postgres-init:0.5.0
image: kubedb/postgres-init:0.6.0
podSecurityPolicies:
databasePolicyName: postgres-db
securityContext:
Expand Down
4 changes: 2 additions & 2 deletions catalog/raw/postgres/postgres-10.19-official.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
exporter:
image: prometheuscommunity/postgres-exporter:v0.9.0
initContainer:
image: kubedb/postgres-init:0.5.0
image: kubedb/postgres-init:0.6.0
podSecurityPolicies:
databasePolicyName: postgres-db
securityContext:
Expand Down Expand Up @@ -44,7 +44,7 @@ spec:
exporter:
image: prometheuscommunity/postgres-exporter:v0.9.0
initContainer:
image: kubedb/postgres-init:0.5.0
image: kubedb/postgres-init:0.6.0
podSecurityPolicies:
databasePolicyName: postgres-db
securityContext:
Expand Down
4 changes: 2 additions & 2 deletions catalog/raw/postgres/postgres-10.20-official.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
exporter:
image: prometheuscommunity/postgres-exporter:v0.9.0
initContainer:
image: kubedb/postgres-init:0.5.0
image: kubedb/postgres-init:0.6.0
podSecurityPolicies:
databasePolicyName: postgres-db
securityContext:
Expand Down Expand Up @@ -44,7 +44,7 @@ spec:
exporter:
image: prometheuscommunity/postgres-exporter:v0.9.0
initContainer:
image: kubedb/postgres-init:0.5.0
image: kubedb/postgres-init:0.6.0
podSecurityPolicies:
databasePolicyName: postgres-db
securityContext:
Expand Down
4 changes: 2 additions & 2 deletions catalog/raw/postgres/postgres-11.11-official.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
exporter:
image: prometheuscommunity/postgres-exporter:v0.9.0
initContainer:
image: kubedb/postgres-init:0.5.0
image: kubedb/postgres-init:0.6.0
podSecurityPolicies:
databasePolicyName: postgres-db
securityContext:
Expand Down Expand Up @@ -44,7 +44,7 @@ spec:
exporter:
image: prometheuscommunity/postgres-exporter:v0.9.0
initContainer:
image: kubedb/postgres-init:0.5.0
image: kubedb/postgres-init:0.6.0
podSecurityPolicies:
databasePolicyName: postgres-db
securityContext:
Expand Down
2 changes: 1 addition & 1 deletion catalog/raw/postgres/postgres-11.11-timescaledb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
exporter:
image: prometheuscommunity/postgres-exporter:v0.9.0
initContainer:
image: kubedb/postgres-init:0.5.0
image: kubedb/postgres-init:0.6.0
podSecurityPolicies:
databasePolicyName: postgres-db
securityContext:
Expand Down
4 changes: 2 additions & 2 deletions catalog/raw/postgres/postgres-11.14-official.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
exporter:
image: prometheuscommunity/postgres-exporter:v0.9.0
initContainer:
image: kubedb/postgres-init:0.5.0
image: kubedb/postgres-init:0.6.0
podSecurityPolicies:
databasePolicyName: postgres-db
securityContext:
Expand Down Expand Up @@ -44,7 +44,7 @@ spec:
exporter:
image: prometheuscommunity/postgres-exporter:v0.9.0
initContainer:
image: kubedb/postgres-init:0.5.0
image: kubedb/postgres-init:0.6.0
podSecurityPolicies:
databasePolicyName: postgres-db
securityContext:
Expand Down
2 changes: 1 addition & 1 deletion catalog/raw/postgres/postgres-11.14-postgis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
exporter:
image: prometheuscommunity/postgres-exporter:v0.9.0
initContainer:
image: kubedb/postgres-init:0.5.0
image: kubedb/postgres-init:0.6.0
podSecurityPolicies:
databasePolicyName: postgres-db
securityContext:
Expand Down
4 changes: 2 additions & 2 deletions catalog/raw/postgres/postgres-11.15-official.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
exporter:
image: prometheuscommunity/postgres-exporter:v0.9.0
initContainer:
image: kubedb/postgres-init:0.5.0
image: kubedb/postgres-init:0.6.0
podSecurityPolicies:
databasePolicyName: postgres-db
securityContext:
Expand Down Expand Up @@ -44,7 +44,7 @@ spec:
exporter:
image: prometheuscommunity/postgres-exporter:v0.9.0
initContainer:
image: kubedb/postgres-init:0.5.0
image: kubedb/postgres-init:0.6.0
podSecurityPolicies:
databasePolicyName: postgres-db
securityContext:
Expand Down
4 changes: 2 additions & 2 deletions catalog/raw/postgres/postgres-12.10-official.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
exporter:
image: prometheuscommunity/postgres-exporter:v0.9.0
initContainer:
image: kubedb/postgres-init:0.5.0
image: kubedb/postgres-init:0.6.0
podSecurityPolicies:
databasePolicyName: postgres-db
securityContext:
Expand Down Expand Up @@ -45,7 +45,7 @@ spec:
exporter:
image: prometheuscommunity/postgres-exporter:v0.9.0
initContainer:
image: kubedb/postgres-init:0.5.0
image: kubedb/postgres-init:0.6.0
podSecurityPolicies:
databasePolicyName: postgres-db
securityContext:
Expand Down
64 changes: 64 additions & 0 deletions catalog/raw/postgres/postgres-12.13-official.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
apiVersion: catalog.kubedb.com/v1alpha1
kind: PostgresVersion
metadata:
name: 12.13-bullseye
spec:
coordinator:
image: kubedb/pg-coordinator:v0.13.0
db:
baseOS: bullseye
image: postgres:12.13-bullseye
distribution: Official
exporter:
image: prometheuscommunity/postgres-exporter:v0.9.0
initContainer:
image: kubedb/postgres-init:0.6.0
podSecurityPolicies:
databasePolicyName: postgres-db
securityContext:
runAsAnyNonRoot: true
runAsUser: 999
stash:
addon:
backupTask:
name: postgres-backup-12.4
restoreTask:
name: postgres-restore-12.4
upgradeConstraints:
allowlist:
- "13.5"
- "14.1"
version: "12.13"

---
apiVersion: catalog.kubedb.com/v1alpha1
kind: PostgresVersion
metadata:
name: "12.13"
spec:
coordinator:
image: kubedb/pg-coordinator:v0.13.0
db:
baseOS: alpine
image: postgres:12.13-alpine
distribution: Official
exporter:
image: prometheuscommunity/postgres-exporter:v0.9.0
initContainer:
image: kubedb/postgres-init:0.6.0
podSecurityPolicies:
databasePolicyName: postgres-db
securityContext:
runAsAnyNonRoot: false
runAsUser: 70
stash:
addon:
backupTask:
name: postgres-backup-12.4
restoreTask:
name: postgres-restore-12.4
upgradeConstraints:
allowlist:
- "13.5"
- "14.1"
version: "12.13"
4 changes: 2 additions & 2 deletions catalog/raw/postgres/postgres-12.6-official.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
exporter:
image: prometheuscommunity/postgres-exporter:v0.9.0
initContainer:
image: kubedb/postgres-init:0.5.0
image: kubedb/postgres-init:0.6.0
podSecurityPolicies:
databasePolicyName: postgres-db
securityContext:
Expand Down Expand Up @@ -45,7 +45,7 @@ spec:
exporter:
image: prometheuscommunity/postgres-exporter:v0.9.0
initContainer:
image: kubedb/postgres-init:0.5.0
image: kubedb/postgres-init:0.6.0
podSecurityPolicies:
databasePolicyName: postgres-db
securityContext:
Expand Down
2 changes: 1 addition & 1 deletion catalog/raw/postgres/postgres-12.6-timescaledb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
exporter:
image: prometheuscommunity/postgres-exporter:v0.9.0
initContainer:
image: kubedb/postgres-init:0.5.0
image: kubedb/postgres-init:0.6.0
podSecurityPolicies:
databasePolicyName: postgres-db
securityContext:
Expand Down
4 changes: 2 additions & 2 deletions catalog/raw/postgres/postgres-12.9-official.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
exporter:
image: prometheuscommunity/postgres-exporter:v0.9.0
initContainer:
image: kubedb/postgres-init:0.5.0
image: kubedb/postgres-init:0.6.0
podSecurityPolicies:
databasePolicyName: postgres-db
securityContext:
Expand Down Expand Up @@ -45,7 +45,7 @@ spec:
exporter:
image: prometheuscommunity/postgres-exporter:v0.9.0
initContainer:
image: kubedb/postgres-init:0.5.0
image: kubedb/postgres-init:0.6.0
podSecurityPolicies:
databasePolicyName: postgres-db
securityContext:
Expand Down
2 changes: 1 addition & 1 deletion catalog/raw/postgres/postgres-12.9-postgis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
exporter:
image: prometheuscommunity/postgres-exporter:v0.9.0
initContainer:
image: kubedb/postgres-init:0.5.0
image: kubedb/postgres-init:0.6.0
podSecurityPolicies:
databasePolicyName: postgres-db
securityContext:
Expand Down
4 changes: 2 additions & 2 deletions catalog/raw/postgres/postgres-13.2-official.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
exporter:
image: prometheuscommunity/postgres-exporter:v0.9.0
initContainer:
image: kubedb/postgres-init:0.5.0
image: kubedb/postgres-init:0.6.0
podSecurityPolicies:
databasePolicyName: postgres-db
securityContext:
Expand Down Expand Up @@ -44,7 +44,7 @@ spec:
exporter:
image: prometheuscommunity/postgres-exporter:v0.9.0
initContainer:
image: kubedb/postgres-init:0.5.0
image: kubedb/postgres-init:0.6.0
podSecurityPolicies:
databasePolicyName: postgres-db
securityContext:
Expand Down
2 changes: 1 addition & 1 deletion catalog/raw/postgres/postgres-13.2-timescaledb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
exporter:
image: prometheuscommunity/postgres-exporter:v0.9.0
initContainer:
image: kubedb/postgres-init:0.5.0
image: kubedb/postgres-init:0.6.0
podSecurityPolicies:
databasePolicyName: postgres-db
securityContext:
Expand Down
4 changes: 2 additions & 2 deletions catalog/raw/postgres/postgres-13.5-official.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
exporter:
image: prometheuscommunity/postgres-exporter:v0.9.0
initContainer:
image: kubedb/postgres-init:0.5.0
image: kubedb/postgres-init:0.6.0
podSecurityPolicies:
databasePolicyName: postgres-db
securityContext:
Expand Down Expand Up @@ -44,7 +44,7 @@ spec:
exporter:
image: prometheuscommunity/postgres-exporter:v0.9.0
initContainer:
image: kubedb/postgres-init:0.5.0
image: kubedb/postgres-init:0.6.0
podSecurityPolicies:
databasePolicyName: postgres-db
securityContext:
Expand Down
2 changes: 1 addition & 1 deletion catalog/raw/postgres/postgres-13.5-postgis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
exporter:
image: prometheuscommunity/postgres-exporter:v0.9.0
initContainer:
image: kubedb/postgres-init:0.5.0
image: kubedb/postgres-init:0.6.0
podSecurityPolicies:
databasePolicyName: postgres-db
securityContext:
Expand Down
4 changes: 2 additions & 2 deletions catalog/raw/postgres/postgres-13.6-official.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
exporter:
image: prometheuscommunity/postgres-exporter:v0.9.0
initContainer:
image: kubedb/postgres-init:0.5.0
image: kubedb/postgres-init:0.6.0
podSecurityPolicies:
databasePolicyName: postgres-db
securityContext:
Expand Down Expand Up @@ -44,7 +44,7 @@ spec:
exporter:
image: prometheuscommunity/postgres-exporter:v0.9.0
initContainer:
image: kubedb/postgres-init:0.5.0
image: kubedb/postgres-init:0.6.0
podSecurityPolicies:
databasePolicyName: postgres-db
securityContext:
Expand Down
Loading

0 comments on commit bb36850

Please sign in to comment.