-
Notifications
You must be signed in to change notification settings - Fork 7
/
k8s.clj
35 lines (27 loc) · 857 Bytes
/
k8s.clj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
(ns org.purefn.kurosawa.k8s
"Kubernetes configuration and deployment helpers."
(:require [org.purefn.kurosawa.config :as config]))
;;------------------------------------------------------------------------------
;; API
;;------------------------------------------------------------------------------
(defn kubernetes?
"[DEPRECATED] -- always returns true.
'Is the program currently running in a Kubernetes container?'
This was a leaky abstraction, the application needn't be concerned with
where/how it is being run."
[]
true)
(defn config-map
"[DEPRECATRED]
Pass through to `org.purefn.kurosawa.config/fetch-config`"
([name]
(config/fetch name))
([]
(config-map "")))
(defn secrets
"[DEPRECATRED]
Pass through to `org.purefn.kurosawa.config/fetch-config`"
([name]
(config/fetch name))
([]
(secrets "")))