From 7cd303b478ee4bd48053dab13fde32b1e6e0453a Mon Sep 17 00:00:00 2001 From: erik Date: Fri, 27 Jan 2023 10:32:47 +0100 Subject: [PATCH] Implement specs as def --- src/main/cljc/dda/c4k_common/postgres.cljc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/cljc/dda/c4k_common/postgres.cljc b/src/main/cljc/dda/c4k_common/postgres.cljc index 314e745..daf4c5c 100644 --- a/src/main/cljc/dda/c4k_common/postgres.cljc +++ b/src/main/cljc/dda/c4k_common/postgres.cljc @@ -24,10 +24,11 @@ (s/def ::db-name cp/bash-env-string?) (s/def ::pvc-storage-class-name cp/pvc-storage-class-name?) (s/def ::pv-storage-size-gb pos?) -(defn pg-config? [input] - (s/keys :opt-un [::postgres-size ::db-name ::postgres-data-volume-path + +(def pg-config? + (s/keys :opt-un [::postgres-size ::db-name ::postgres-data-volume-path ::pvc-storage-class-name ::pv-storage-size-gb])) -(defn pg-auth? [input] +(def pg-auth? (s/keys :opt-un [::postgres-db-user ::postgres-db-password])) (def postgres-function (s/keys :opt-un [::deserializer ::optional]))