From 27bd18ecd95abef6a5649c7c650b57c47f0c0be4 Mon Sep 17 00:00:00 2001 From: Tamal Saha Date: Thu, 19 Dec 2024 10:28:50 -0800 Subject: [PATCH] Update postgres version Signed-off-by: Tamal Saha --- catalog/kubedb/active_versions.json | 6 + catalog/kubedb/backup_tasks.json | 6 + .../raw/postgres/postgres-14.10-official.yaml | 2 +- .../raw/postgres/postgres-14.13-official.yaml | 2 +- .../raw/postgres/postgres-15.10-official.yaml | 104 ++++++++++++++++ .../raw/postgres/postgres-15.6-official.yaml | 2 +- .../raw/postgres/postgres-15.6-postgis.yaml | 2 +- .../raw/postgres/postgres-15.8-official.yaml | 2 +- .../raw/postgres/postgres-16.1-official.yaml | 2 +- .../raw/postgres/postgres-16.2-official.yaml | 2 +- .../raw/postgres/postgres-16.2-postgis.yaml | 2 +- .../raw/postgres/postgres-16.4-official.yaml | 2 +- .../raw/postgres/postgres-16.6-official.yaml | 102 +++++++++++++++ .../raw/postgres/postgres-17.2-official.yaml | 102 +++++++++++++++ catalog/kubedb/restore_tasks.json | 6 + .../postgres/postgres-14.10-official.yaml | 2 +- .../postgres/postgres-14.13-official.yaml | 2 +- .../postgres/postgres-15.10-official.yaml | 117 ++++++++++++++++++ .../postgres/postgres-15.6-official.yaml | 2 +- .../postgres/postgres-15.6-postgis.yaml | 2 +- .../postgres/postgres-15.8-official.yaml | 2 +- .../postgres/postgres-16.1-official.yaml | 2 +- .../postgres/postgres-16.2-official.yaml | 2 +- .../postgres/postgres-16.2-postgis.yaml | 2 +- .../postgres/postgres-16.4-official.yaml | 2 +- .../postgres/postgres-16.6-official.yaml | 115 +++++++++++++++++ .../postgres/postgres-17.2-official.yaml | 115 +++++++++++++++++ 27 files changed, 691 insertions(+), 18 deletions(-) create mode 100644 catalog/kubedb/raw/postgres/postgres-15.10-official.yaml create mode 100644 catalog/kubedb/raw/postgres/postgres-16.6-official.yaml create mode 100644 catalog/kubedb/raw/postgres/postgres-17.2-official.yaml create mode 100644 charts/kubedb-catalog/templates/postgres/postgres-15.10-official.yaml create mode 100644 charts/kubedb-catalog/templates/postgres/postgres-16.6-official.yaml create mode 100644 charts/kubedb-catalog/templates/postgres/postgres-17.2-official.yaml diff --git a/catalog/kubedb/active_versions.json b/catalog/kubedb/active_versions.json index 88675642c..fd61f0f99 100644 --- a/catalog/kubedb/active_versions.json +++ b/catalog/kubedb/active_versions.json @@ -142,12 +142,18 @@ "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", diff --git a/catalog/kubedb/backup_tasks.json b/catalog/kubedb/backup_tasks.json index aa70e54c1..067a5b772 100644 --- a/catalog/kubedb/backup_tasks.json +++ b/catalog/kubedb/backup_tasks.json @@ -124,6 +124,8 @@ ], "postgres-backup-15.1": [ "timescaledb-2.14.2-pg15", + "15.10-bookworm", + "15.10", "15.8-bookworm", "15.8", "15.5-bookworm", @@ -132,6 +134,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", diff --git a/catalog/kubedb/raw/postgres/postgres-14.10-official.yaml b/catalog/kubedb/raw/postgres/postgres-14.10-official.yaml index 418a4859b..cd3d2ac90 100644 --- a/catalog/kubedb/raw/postgres/postgres-14.10-official.yaml +++ b/catalog/kubedb/raw/postgres/postgres-14.10-official.yaml @@ -100,5 +100,5 @@ spec: version: v2024.4.27 updateConstraints: allowlist: - - '>= 14.13, <= 16.4' + - '>= 14.13, <= 16.6' version: "14.10" diff --git a/catalog/kubedb/raw/postgres/postgres-14.13-official.yaml b/catalog/kubedb/raw/postgres/postgres-14.13-official.yaml index d6c637b1d..27608f0c4 100644 --- a/catalog/kubedb/raw/postgres/postgres-14.13-official.yaml +++ b/catalog/kubedb/raw/postgres/postgres-14.13-official.yaml @@ -100,5 +100,5 @@ spec: version: v2024.4.27 updateConstraints: allowlist: - - '>= 15.5, <= 16.4' + - '>= 15.5, <= 16.6' version: "14.13" diff --git a/catalog/kubedb/raw/postgres/postgres-15.10-official.yaml b/catalog/kubedb/raw/postgres/postgres-15.10-official.yaml new file mode 100644 index 000000000..a4f1d2f9c --- /dev/null +++ b/catalog/kubedb/raw/postgres/postgres-15.10-official.yaml @@ -0,0 +1,104 @@ +apiVersion: catalog.kubedb.com/v1alpha1 +kind: PostgresVersion +metadata: + name: "15.10" +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)_15.5-alpine + coordinator: + image: ghcr.io/kubedb/pg-coordinator:v0.33.0 + db: + baseOS: alpine + image: ghcr.io/appscode-images/postgres:15.10-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-15.1 + restoreTask: + name: postgres-restore-15.1 + ui: + - name: pgadmin + version: v2024.4.27 + - name: dbgate + version: v2024.4.27 + updateConstraints: + allowlist: + - "16.4" + version: "15.10" + +--- +apiVersion: catalog.kubedb.com/v1alpha1 +kind: PostgresVersion +metadata: + name: 15.10-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)_15.5-bookworm + coordinator: + image: ghcr.io/kubedb/pg-coordinator:v0.33.0 + db: + baseOS: bookworm + image: ghcr.io/appscode-images/postgres:15.10-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-15.1 + restoreTask: + name: postgres-restore-15.1 + ui: + - name: pgadmin + version: v2024.4.27 + - name: dbgate + version: v2024.4.27 + updateConstraints: + allowlist: + - "16.6" + version: "15.10" diff --git a/catalog/kubedb/raw/postgres/postgres-15.6-official.yaml b/catalog/kubedb/raw/postgres/postgres-15.6-official.yaml index 83fd06f3e..e1a0f802a 100644 --- a/catalog/kubedb/raw/postgres/postgres-15.6-official.yaml +++ b/catalog/kubedb/raw/postgres/postgres-15.6-official.yaml @@ -47,5 +47,5 @@ spec: version: v2024.4.27 updateConstraints: allowlist: - - '>= 15.8, <= 16.4' + - '>= 15.8, <= 16.6' version: "15.6" diff --git a/catalog/kubedb/raw/postgres/postgres-15.6-postgis.yaml b/catalog/kubedb/raw/postgres/postgres-15.6-postgis.yaml index d585c05fe..f07a8eef6 100644 --- a/catalog/kubedb/raw/postgres/postgres-15.6-postgis.yaml +++ b/catalog/kubedb/raw/postgres/postgres-15.6-postgis.yaml @@ -47,5 +47,5 @@ spec: version: v2024.4.27 updateConstraints: allowlist: - - "14.2" + - '>= 15.6' version: "15.6" diff --git a/catalog/kubedb/raw/postgres/postgres-15.8-official.yaml b/catalog/kubedb/raw/postgres/postgres-15.8-official.yaml index 862a2a3ce..73337a896 100644 --- a/catalog/kubedb/raw/postgres/postgres-15.8-official.yaml +++ b/catalog/kubedb/raw/postgres/postgres-15.8-official.yaml @@ -100,5 +100,5 @@ spec: version: v2024.4.27 updateConstraints: allowlist: - - "16.4" + - '>= 15.8, <= 16.6' version: "15.8" diff --git a/catalog/kubedb/raw/postgres/postgres-16.1-official.yaml b/catalog/kubedb/raw/postgres/postgres-16.1-official.yaml index 768d5e913..027481cf6 100644 --- a/catalog/kubedb/raw/postgres/postgres-16.1-official.yaml +++ b/catalog/kubedb/raw/postgres/postgres-16.1-official.yaml @@ -98,5 +98,5 @@ spec: version: v2024.4.27 updateConstraints: allowlist: - - "16.4" + - '>= 16.1' version: "16.1" diff --git a/catalog/kubedb/raw/postgres/postgres-16.2-official.yaml b/catalog/kubedb/raw/postgres/postgres-16.2-official.yaml index 49f455fcc..4c18052aa 100644 --- a/catalog/kubedb/raw/postgres/postgres-16.2-official.yaml +++ b/catalog/kubedb/raw/postgres/postgres-16.2-official.yaml @@ -47,5 +47,5 @@ spec: version: v2024.4.27 updateConstraints: allowlist: - - "16.4" + - '>= 16.2' version: "16.2" diff --git a/catalog/kubedb/raw/postgres/postgres-16.2-postgis.yaml b/catalog/kubedb/raw/postgres/postgres-16.2-postgis.yaml index 863e086fe..262928f68 100644 --- a/catalog/kubedb/raw/postgres/postgres-16.2-postgis.yaml +++ b/catalog/kubedb/raw/postgres/postgres-16.2-postgis.yaml @@ -47,5 +47,5 @@ spec: version: v2024.4.27 updateConstraints: allowlist: - - "16.2" + - '>= 16.2' version: "16.2" diff --git a/catalog/kubedb/raw/postgres/postgres-16.4-official.yaml b/catalog/kubedb/raw/postgres/postgres-16.4-official.yaml index 1fa11b89e..b24b9a911 100644 --- a/catalog/kubedb/raw/postgres/postgres-16.4-official.yaml +++ b/catalog/kubedb/raw/postgres/postgres-16.4-official.yaml @@ -98,5 +98,5 @@ spec: version: v2024.4.27 updateConstraints: allowlist: - - "16.4" + - '>= 16.4' version: "16.4" diff --git a/catalog/kubedb/raw/postgres/postgres-16.6-official.yaml b/catalog/kubedb/raw/postgres/postgres-16.6-official.yaml new file mode 100644 index 000000000..85609a002 --- /dev/null +++ b/catalog/kubedb/raw/postgres/postgres-16.6-official.yaml @@ -0,0 +1,102 @@ +apiVersion: catalog.kubedb.com/v1alpha1 +kind: PostgresVersion +metadata: + name: "16.6" +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)_16.1-alpine + coordinator: + image: ghcr.io/kubedb/pg-coordinator:v0.33.0 + db: + baseOS: alpine + image: ghcr.io/appscode-images/postgres:16.6-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-16.1 + restoreTask: + name: postgres-restore-16.1 + ui: + - name: pgadmin + version: v2024.4.27 + updateConstraints: + allowlist: + - "16.6" + version: "16.6" + +--- +apiVersion: catalog.kubedb.com/v1alpha1 +kind: PostgresVersion +metadata: + name: 16.6-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)_16.1-bookworm + coordinator: + image: ghcr.io/kubedb/pg-coordinator:v0.33.0 + db: + baseOS: bookworm + image: ghcr.io/appscode-images/postgres:16.6-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-16.1 + restoreTask: + name: postgres-restore-16.1 + ui: + - name: pgadmin + version: v2024.4.27 + - name: dbgate + version: v2024.4.27 + updateConstraints: + allowlist: + - '>= 16.6' + version: "16.6" diff --git a/catalog/kubedb/raw/postgres/postgres-17.2-official.yaml b/catalog/kubedb/raw/postgres/postgres-17.2-official.yaml new file mode 100644 index 000000000..e908fbb90 --- /dev/null +++ b/catalog/kubedb/raw/postgres/postgres-17.2-official.yaml @@ -0,0 +1,102 @@ +apiVersion: catalog.kubedb.com/v1alpha1 +kind: PostgresVersion +metadata: + name: "17.2" +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)_16.1-alpine + coordinator: + image: ghcr.io/kubedb/pg-coordinator:v0.33.0 + db: + baseOS: alpine + image: ghcr.io/appscode-images/postgres:17.2-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-16.1 + restoreTask: + name: postgres-restore-16.1 + ui: + - name: pgadmin + version: v2024.4.27 + updateConstraints: + allowlist: + - "17.2" + version: "17.2" + +--- +apiVersion: catalog.kubedb.com/v1alpha1 +kind: PostgresVersion +metadata: + name: 17.2-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)_16.1-bookworm + coordinator: + image: ghcr.io/kubedb/pg-coordinator:v0.33.0 + db: + baseOS: bookworm + image: ghcr.io/appscode-images/postgres:17.2-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-16.1 + restoreTask: + name: postgres-restore-16.1 + ui: + - name: pgadmin + version: v2024.4.27 + - name: dbgate + version: v2024.4.27 + updateConstraints: + allowlist: + - '>= 17.2' + version: "17.2" diff --git a/catalog/kubedb/restore_tasks.json b/catalog/kubedb/restore_tasks.json index e1df7e935..3e4b8f512 100644 --- a/catalog/kubedb/restore_tasks.json +++ b/catalog/kubedb/restore_tasks.json @@ -124,6 +124,8 @@ ], "postgres-restore-15.1": [ "timescaledb-2.14.2-pg15", + "15.10-bookworm", + "15.10", "15.8-bookworm", "15.8", "15.5-bookworm", @@ -132,6 +134,10 @@ ], "postgres-restore-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", diff --git a/charts/kubedb-catalog/templates/postgres/postgres-14.10-official.yaml b/charts/kubedb-catalog/templates/postgres/postgres-14.10-official.yaml index c917265be..9e55d09c6 100644 --- a/charts/kubedb-catalog/templates/postgres/postgres-14.10-official.yaml +++ b/charts/kubedb-catalog/templates/postgres/postgres-14.10-official.yaml @@ -112,6 +112,6 @@ spec: version: v2024.4.27 updateConstraints: allowlist: - - '>= 14.13, <= 16.4' + - '>= 14.13, <= 16.6' version: "14.10" {{ end }} diff --git a/charts/kubedb-catalog/templates/postgres/postgres-14.13-official.yaml b/charts/kubedb-catalog/templates/postgres/postgres-14.13-official.yaml index 05683ee02..141a2c560 100644 --- a/charts/kubedb-catalog/templates/postgres/postgres-14.13-official.yaml +++ b/charts/kubedb-catalog/templates/postgres/postgres-14.13-official.yaml @@ -112,6 +112,6 @@ spec: version: v2024.4.27 updateConstraints: allowlist: - - '>= 15.5, <= 16.4' + - '>= 15.5, <= 16.6' version: "14.13" {{ end }} diff --git a/charts/kubedb-catalog/templates/postgres/postgres-15.10-official.yaml b/charts/kubedb-catalog/templates/postgres/postgres-15.10-official.yaml new file mode 100644 index 000000000..8da745c49 --- /dev/null +++ b/charts/kubedb-catalog/templates/postgres/postgres-15.10-official.yaml @@ -0,0 +1,117 @@ +{{ $featureGates := .Values.featureGates }} +{{- if .Values.global }} + {{ $featureGates = mergeOverwrite dict .Values.featureGates .Values.global.featureGates }} +{{- end }} + +{{ if $featureGates.Postgres }} + +apiVersion: catalog.kubedb.com/v1alpha1 +kind: PostgresVersion +metadata: + name: '15.10' + labels: + {{- include "kubedb-catalog.labels" . | nindent 4 }} +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: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/postgres-archiver") $) }}:v0.10.0_15.5-alpine' + coordinator: + image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/pg-coordinator") $) }}:v0.33.0' + db: + baseOS: alpine + image: '{{ include "image.ghcr" (merge (dict "_repo" "appscode-images/postgres") $) }}:15.10-alpine' + distribution: Official + exporter: + image: '{{ include "image.dockerHub" (merge (dict "_repo" "prometheuscommunity/postgres-exporter") $) }}:v0.15.0' + initContainer: + image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/postgres-init") $) }}:0.17.0' + podSecurityPolicies: + databasePolicyName: postgres-db + securityContext: + runAsAnyNonRoot: false + runAsUser: 70 + stash: + addon: + backupTask: + name: postgres-backup-15.1 + restoreTask: + name: postgres-restore-15.1 + ui: + - name: pgadmin + version: v2024.4.27 + - name: dbgate + version: v2024.4.27 + updateConstraints: + allowlist: + - "16.4" + version: "15.10" + +--- + +apiVersion: catalog.kubedb.com/v1alpha1 +kind: PostgresVersion +metadata: + name: '15.10-bookworm' + labels: + {{- include "kubedb-catalog.labels" . | nindent 4 }} +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: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/postgres-archiver") $) }}:v0.10.0_15.5-bookworm' + coordinator: + image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/pg-coordinator") $) }}:v0.33.0' + db: + baseOS: bookworm + image: '{{ include "image.ghcr" (merge (dict "_repo" "appscode-images/postgres") $) }}:15.10-bookworm' + distribution: Official + exporter: + image: '{{ include "image.dockerHub" (merge (dict "_repo" "prometheuscommunity/postgres-exporter") $) }}:v0.15.0' + initContainer: + image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/postgres-init") $) }}:0.17.0' + podSecurityPolicies: + databasePolicyName: postgres-db + securityContext: + runAsAnyNonRoot: true + runAsUser: 999 + stash: + addon: + backupTask: + name: postgres-backup-15.1 + restoreTask: + name: postgres-restore-15.1 + ui: + - name: pgadmin + version: v2024.4.27 + - name: dbgate + version: v2024.4.27 + updateConstraints: + allowlist: + - "16.6" + version: "15.10" +{{ end }} diff --git a/charts/kubedb-catalog/templates/postgres/postgres-15.6-official.yaml b/charts/kubedb-catalog/templates/postgres/postgres-15.6-official.yaml index dc2d35bce..df3fc3b10 100644 --- a/charts/kubedb-catalog/templates/postgres/postgres-15.6-official.yaml +++ b/charts/kubedb-catalog/templates/postgres/postgres-15.6-official.yaml @@ -56,6 +56,6 @@ spec: version: v2024.4.27 updateConstraints: allowlist: - - '>= 15.8, <= 16.4' + - '>= 15.8, <= 16.6' version: "15.6" {{ end }} diff --git a/charts/kubedb-catalog/templates/postgres/postgres-15.6-postgis.yaml b/charts/kubedb-catalog/templates/postgres/postgres-15.6-postgis.yaml index 32c9f7330..d5aeaf2a4 100644 --- a/charts/kubedb-catalog/templates/postgres/postgres-15.6-postgis.yaml +++ b/charts/kubedb-catalog/templates/postgres/postgres-15.6-postgis.yaml @@ -56,6 +56,6 @@ spec: version: v2024.4.27 updateConstraints: allowlist: - - "14.2" + - '>= 15.6' version: "15.6" {{ end }} diff --git a/charts/kubedb-catalog/templates/postgres/postgres-15.8-official.yaml b/charts/kubedb-catalog/templates/postgres/postgres-15.8-official.yaml index 86c8be6f0..b941975c3 100644 --- a/charts/kubedb-catalog/templates/postgres/postgres-15.8-official.yaml +++ b/charts/kubedb-catalog/templates/postgres/postgres-15.8-official.yaml @@ -112,6 +112,6 @@ spec: version: v2024.4.27 updateConstraints: allowlist: - - "16.4" + - '>= 15.8, <= 16.6' version: "15.8" {{ end }} diff --git a/charts/kubedb-catalog/templates/postgres/postgres-16.1-official.yaml b/charts/kubedb-catalog/templates/postgres/postgres-16.1-official.yaml index 55c3649de..b7a6f7a72 100644 --- a/charts/kubedb-catalog/templates/postgres/postgres-16.1-official.yaml +++ b/charts/kubedb-catalog/templates/postgres/postgres-16.1-official.yaml @@ -110,6 +110,6 @@ spec: version: v2024.4.27 updateConstraints: allowlist: - - "16.4" + - '>= 16.1' version: "16.1" {{ end }} diff --git a/charts/kubedb-catalog/templates/postgres/postgres-16.2-official.yaml b/charts/kubedb-catalog/templates/postgres/postgres-16.2-official.yaml index 6824fdbe2..e561837df 100644 --- a/charts/kubedb-catalog/templates/postgres/postgres-16.2-official.yaml +++ b/charts/kubedb-catalog/templates/postgres/postgres-16.2-official.yaml @@ -56,6 +56,6 @@ spec: version: v2024.4.27 updateConstraints: allowlist: - - "16.4" + - '>= 16.2' version: "16.2" {{ end }} diff --git a/charts/kubedb-catalog/templates/postgres/postgres-16.2-postgis.yaml b/charts/kubedb-catalog/templates/postgres/postgres-16.2-postgis.yaml index f94f3cbd5..227bddd0d 100644 --- a/charts/kubedb-catalog/templates/postgres/postgres-16.2-postgis.yaml +++ b/charts/kubedb-catalog/templates/postgres/postgres-16.2-postgis.yaml @@ -56,6 +56,6 @@ spec: version: v2024.4.27 updateConstraints: allowlist: - - "16.2" + - '>= 16.2' version: "16.2" {{ end }} diff --git a/charts/kubedb-catalog/templates/postgres/postgres-16.4-official.yaml b/charts/kubedb-catalog/templates/postgres/postgres-16.4-official.yaml index 35fe8f71f..adf27f442 100644 --- a/charts/kubedb-catalog/templates/postgres/postgres-16.4-official.yaml +++ b/charts/kubedb-catalog/templates/postgres/postgres-16.4-official.yaml @@ -110,6 +110,6 @@ spec: version: v2024.4.27 updateConstraints: allowlist: - - "16.4" + - '>= 16.4' version: "16.4" {{ end }} diff --git a/charts/kubedb-catalog/templates/postgres/postgres-16.6-official.yaml b/charts/kubedb-catalog/templates/postgres/postgres-16.6-official.yaml new file mode 100644 index 000000000..675985c77 --- /dev/null +++ b/charts/kubedb-catalog/templates/postgres/postgres-16.6-official.yaml @@ -0,0 +1,115 @@ +{{ $featureGates := .Values.featureGates }} +{{- if .Values.global }} + {{ $featureGates = mergeOverwrite dict .Values.featureGates .Values.global.featureGates }} +{{- end }} + +{{ if $featureGates.Postgres }} + +apiVersion: catalog.kubedb.com/v1alpha1 +kind: PostgresVersion +metadata: + name: '16.6' + labels: + {{- include "kubedb-catalog.labels" . | nindent 4 }} +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: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/postgres-archiver") $) }}:v0.10.0_16.1-alpine' + coordinator: + image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/pg-coordinator") $) }}:v0.33.0' + db: + baseOS: alpine + image: '{{ include "image.ghcr" (merge (dict "_repo" "appscode-images/postgres") $) }}:16.6-alpine' + distribution: Official + exporter: + image: '{{ include "image.dockerHub" (merge (dict "_repo" "prometheuscommunity/postgres-exporter") $) }}:v0.15.0' + initContainer: + image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/postgres-init") $) }}:0.17.0' + podSecurityPolicies: + databasePolicyName: postgres-db + securityContext: + runAsAnyNonRoot: false + runAsUser: 70 + stash: + addon: + backupTask: + name: postgres-backup-16.1 + restoreTask: + name: postgres-restore-16.1 + ui: + - name: pgadmin + version: v2024.4.27 + updateConstraints: + allowlist: + - "16.6" + version: "16.6" + +--- + +apiVersion: catalog.kubedb.com/v1alpha1 +kind: PostgresVersion +metadata: + name: '16.6-bookworm' + labels: + {{- include "kubedb-catalog.labels" . | nindent 4 }} +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: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/postgres-archiver") $) }}:v0.10.0_16.1-bookworm' + coordinator: + image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/pg-coordinator") $) }}:v0.33.0' + db: + baseOS: bookworm + image: '{{ include "image.ghcr" (merge (dict "_repo" "appscode-images/postgres") $) }}:16.6-bookworm' + distribution: Official + exporter: + image: '{{ include "image.dockerHub" (merge (dict "_repo" "prometheuscommunity/postgres-exporter") $) }}:v0.15.0' + initContainer: + image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/postgres-init") $) }}:0.17.0' + podSecurityPolicies: + databasePolicyName: postgres-db + securityContext: + runAsAnyNonRoot: true + runAsUser: 999 + stash: + addon: + backupTask: + name: postgres-backup-16.1 + restoreTask: + name: postgres-restore-16.1 + ui: + - name: pgadmin + version: v2024.4.27 + - name: dbgate + version: v2024.4.27 + updateConstraints: + allowlist: + - '>= 16.6' + version: "16.6" +{{ end }} diff --git a/charts/kubedb-catalog/templates/postgres/postgres-17.2-official.yaml b/charts/kubedb-catalog/templates/postgres/postgres-17.2-official.yaml new file mode 100644 index 000000000..5e7c2765e --- /dev/null +++ b/charts/kubedb-catalog/templates/postgres/postgres-17.2-official.yaml @@ -0,0 +1,115 @@ +{{ $featureGates := .Values.featureGates }} +{{- if .Values.global }} + {{ $featureGates = mergeOverwrite dict .Values.featureGates .Values.global.featureGates }} +{{- end }} + +{{ if $featureGates.Postgres }} + +apiVersion: catalog.kubedb.com/v1alpha1 +kind: PostgresVersion +metadata: + name: '17.2' + labels: + {{- include "kubedb-catalog.labels" . | nindent 4 }} +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: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/postgres-archiver") $) }}:v0.10.0_16.1-alpine' + coordinator: + image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/pg-coordinator") $) }}:v0.33.0' + db: + baseOS: alpine + image: '{{ include "image.ghcr" (merge (dict "_repo" "appscode-images/postgres") $) }}:17.2-alpine' + distribution: Official + exporter: + image: '{{ include "image.dockerHub" (merge (dict "_repo" "prometheuscommunity/postgres-exporter") $) }}:v0.15.0' + initContainer: + image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/postgres-init") $) }}:0.17.0' + podSecurityPolicies: + databasePolicyName: postgres-db + securityContext: + runAsAnyNonRoot: false + runAsUser: 70 + stash: + addon: + backupTask: + name: postgres-backup-16.1 + restoreTask: + name: postgres-restore-16.1 + ui: + - name: pgadmin + version: v2024.4.27 + updateConstraints: + allowlist: + - "17.2" + version: "17.2" + +--- + +apiVersion: catalog.kubedb.com/v1alpha1 +kind: PostgresVersion +metadata: + name: '17.2-bookworm' + labels: + {{- include "kubedb-catalog.labels" . | nindent 4 }} +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: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/postgres-archiver") $) }}:v0.10.0_16.1-bookworm' + coordinator: + image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/pg-coordinator") $) }}:v0.33.0' + db: + baseOS: bookworm + image: '{{ include "image.ghcr" (merge (dict "_repo" "appscode-images/postgres") $) }}:17.2-bookworm' + distribution: Official + exporter: + image: '{{ include "image.dockerHub" (merge (dict "_repo" "prometheuscommunity/postgres-exporter") $) }}:v0.15.0' + initContainer: + image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/postgres-init") $) }}:0.17.0' + podSecurityPolicies: + databasePolicyName: postgres-db + securityContext: + runAsAnyNonRoot: true + runAsUser: 999 + stash: + addon: + backupTask: + name: postgres-backup-16.1 + restoreTask: + name: postgres-restore-16.1 + ui: + - name: pgadmin + version: v2024.4.27 + - name: dbgate + version: v2024.4.27 + updateConstraints: + allowlist: + - '>= 17.2' + version: "17.2" +{{ end }}