Implement specs as def
This commit is contained in:
parent
e53dfc01aa
commit
7cd303b478
1 changed files with 4 additions and 3 deletions
|
@ -24,10 +24,11 @@
|
||||||
(s/def ::db-name cp/bash-env-string?)
|
(s/def ::db-name cp/bash-env-string?)
|
||||||
(s/def ::pvc-storage-class-name cp/pvc-storage-class-name?)
|
(s/def ::pvc-storage-class-name cp/pvc-storage-class-name?)
|
||||||
(s/def ::pv-storage-size-gb pos?)
|
(s/def ::pv-storage-size-gb pos?)
|
||||||
(defn pg-config? [input]
|
|
||||||
|
(def pg-config?
|
||||||
(s/keys :opt-un [::postgres-size ::db-name ::postgres-data-volume-path
|
(s/keys :opt-un [::postgres-size ::db-name ::postgres-data-volume-path
|
||||||
::pvc-storage-class-name ::pv-storage-size-gb]))
|
::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]))
|
(s/keys :opt-un [::postgres-db-user ::postgres-db-password]))
|
||||||
|
|
||||||
(def postgres-function (s/keys :opt-un [::deserializer ::optional]))
|
(def postgres-function (s/keys :opt-un [::deserializer ::optional]))
|
||||||
|
|
Loading…
Reference in a new issue