From cf998d11f53f3726156d5e3b9b43bf75dabb1e6e Mon Sep 17 00:00:00 2001 From: Pavan Navarathna <6504783+pavannd1@users.noreply.github.com> Date: Wed, 2 Oct 2024 15:50:27 -0700 Subject: [PATCH 1/3] Pin postgres image tag version to 16 --- pkg/app/postgresql.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/app/postgresql.go b/pkg/app/postgresql.go index 5e504f8141..8a09a40963 100644 --- a/pkg/app/postgresql.go +++ b/pkg/app/postgresql.go @@ -41,7 +41,7 @@ type PostgresDB struct { } // NewPostgresDB initialises an instance of Postgres DB -// Last tested chart version "10.12.3". Also, we are using postgres version 13.4 +// Last tested chart version "15.5.38". Also, we are using postgres version 16 func NewPostgresDB(name string, subPath string) App { return &PostgresDB{ name: name, @@ -62,6 +62,9 @@ func NewPostgresDB(name string, subPath string) App { "primary.containerSecurityContext.capabilities.add[1]": "FOWNER", "primary.containerSecurityContext.capabilities.add[2]": "DAC_OVERRIDE", "primary.containerSecurityContext.readOnlyRootFilesystem": "false", + // Update manually whenever a new version is release. + // TODO: Automate the update process for the image tag. + "image.tag": "16-bullseye", }, }, } From ec126818b431bbc9c83c3e3119cd090cb9876a49 Mon Sep 17 00:00:00 2001 From: Pavan Navarathna <6504783+pavannd1@users.noreply.github.com> Date: Wed, 2 Oct 2024 16:18:40 -0700 Subject: [PATCH 2/3] Add correct repository --- pkg/app/postgresql.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/app/postgresql.go b/pkg/app/postgresql.go index 8a09a40963..17ef72d717 100644 --- a/pkg/app/postgresql.go +++ b/pkg/app/postgresql.go @@ -64,6 +64,7 @@ func NewPostgresDB(name string, subPath string) App { "primary.containerSecurityContext.readOnlyRootFilesystem": "false", // Update manually whenever a new version is release. // TODO: Automate the update process for the image tag. + "image.repository": "postgres", "image.tag": "16-bullseye", }, }, From 0ce22fce62077bf97ff731af1350155e5c65b51e Mon Sep 17 00:00:00 2001 From: Pavan Navarathna Devaraj <6504783+pavannd1@users.noreply.github.com> Date: Wed, 2 Oct 2024 16:25:22 -0700 Subject: [PATCH 3/3] Fix lint --- pkg/app/postgresql.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/app/postgresql.go b/pkg/app/postgresql.go index 17ef72d717..26a2e9e994 100644 --- a/pkg/app/postgresql.go +++ b/pkg/app/postgresql.go @@ -65,7 +65,7 @@ func NewPostgresDB(name string, subPath string) App { // Update manually whenever a new version is release. // TODO: Automate the update process for the image tag. "image.repository": "postgres", - "image.tag": "16-bullseye", + "image.tag": "16-bullseye", }, }, }