This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-03-21
Channels
- # beginners (65)
- # boot (24)
- # cider (2)
- # clara (13)
- # cljs-dev (45)
- # clojure (48)
- # clojure-dusseldorf (2)
- # clojure-italy (69)
- # clojure-norway (1)
- # clojure-russia (5)
- # clojure-sanfrancisco (1)
- # clojure-spec (51)
- # clojure-uk (34)
- # clojurescript (312)
- # cursive (5)
- # datavis (1)
- # datomic (9)
- # duct (13)
- # editors (3)
- # emacs (2)
- # fulcro (11)
- # graphql (19)
- # hoplon (1)
- # immutant (2)
- # jobs (7)
- # jobs-discuss (38)
- # lein-figwheel (1)
- # luminus (6)
- # off-topic (2)
- # parinfer (10)
- # pedestal (1)
- # re-frame (9)
- # reagent (28)
- # reitit (1)
- # remote-jobs (12)
- # ring-swagger (26)
- # shadow-cljs (232)
- # slack-help (8)
- # tools-deps (29)
- # unrepl (29)
- # vim (10)
- # yada (31)
Hi guys, i’m having a bit of a hiccup right now with environment variables, for whatever reason the config file doesn’t seem to recognize my POSTGRES_PASSWORD
even when I ref it as #duct/env ["POSTGRES_PASSWORD"]
or #duct/env "POSTGRES_PASSWORD"]
The config map keeps returning nil
even when I set the environment variable on my local machine
How are you setting the environment variable?
the big issue i’m having is that it’s not picking up the environment variable from the k8s secret
echo $POSTGRES_PASSWORD='hello'
won’t set the environment variable.
You want something more like POSTGRES_PASSWORD=hello lein run
Sorry, that’s what I meant to say. If did something like echo $POSTGRES_PASSWORD
, it’ll print correctly
I think I’d need to see more of how you set it up. Duct is just calling System/getenv
Okay, I think i’m onto something right now, I’ll see how it goes. Thanks for the help @weavejester
@arundilipan could you provide a sample snippet from your config map where you try to get the env var?