From 947c43a6075c6a9d52890ee539c24d6a41cc691a Mon Sep 17 00:00:00 2001 From: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Thu, 9 Jan 2025 09:17:37 +0100 Subject: [PATCH] fix: pstgress>12 now works again with encrypted hetzner volume This is a BreakingChange for existing postgres installations. --- project.clj | 2 +- src/main/cljc/dda/c4k_common/postgres/postgres_internal.cljc | 2 +- src/main/resources/postgres/deployment.yaml | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/project.clj b/project.clj index 31435ef..259ddc8 100644 --- a/project.clj +++ b/project.clj @@ -1,4 +1,4 @@ -(defproject org.domaindrivenarchitecture/c4k-common-clj "8.1.2-SNAPSHOT" +(defproject org.domaindrivenarchitecture/c4k-common-clj "9.0.0-SNAPSHOT" :description "Contains predicates and tools for c4k" :url "https://domaindrivenarchitecture.org" :license {:name "Apache License, Version 2.0" diff --git a/src/main/cljc/dda/c4k_common/postgres/postgres_internal.cljc b/src/main/cljc/dda/c4k_common/postgres/postgres_internal.cljc index 84dd022..ae27b81 100644 --- a/src/main/cljc/dda/c4k_common/postgres/postgres_internal.cljc +++ b/src/main/cljc/dda/c4k_common/postgres/postgres_internal.cljc @@ -32,7 +32,7 @@ (defn postgres-image? [input] - (contains? #{"postgres:13" "postgres:14" "postgres:15" "postgres:16"} input)) + (contains? #{"postgres:13" "postgres:14" "postgres:15" "postgres:16" "postgres:17"} input)) (s/def ::postgres-db-user cp/bash-env-string?) (s/def ::postgres-db-password cp/bash-env-string?) (s/def ::postgres-data-volume-path string?) diff --git a/src/main/resources/postgres/deployment.yaml b/src/main/resources/postgres/deployment.yaml index 5b4bb4d..8488614 100644 --- a/src/main/resources/postgres/deployment.yaml +++ b/src/main/resources/postgres/deployment.yaml @@ -32,6 +32,8 @@ spec: configMapKeyRef: name: postgres-config key: postgres-db + - name: PGDATA + value: /var/lib/postgresql/data/db/ ports: - containerPort: 5432 name: postgresql