Skip to content

Commit 055dd39

Browse files
authored
Read only secrets that are regular files for k8s
1 parent ca5432e commit 055dd39

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

template/bb/lib/secrets.clj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
(defn ->secrets []
1717
(when (fs/exists? secrets-dir)
1818
(->> (fs/list-dir secrets-dir)
19-
(map #(let [filepath (-> % str)
20-
secret-raw (slurp filepath)]
21-
(->secret filepath secret-raw)))
19+
(keep #(let [filepath (str %)]
20+
(when (fs/regular-file? filepath)
21+
(->secret filepath (slurp filepath)))))
2222
(apply merge))))

0 commit comments

Comments
 (0)