https://dagster.io/ logo
#announcements
Title
# announcements
a

Alessandro Marrella

03/30/2021, 4:16 PM
hi! is there a way to pass an env variable to sensors via the helm chart? I tried using
env
in my userDeployment but no luck with that (i see it in the configmap, but if i reference it from my sensor it fails)
r

rex

03/30/2021, 4:22 PM
Have you tried putting the env variable in the Daemon env as well?
The user code from the deployment gets loaded in Dagit or Daemon, so they two components need access to the env variable as well if you plan on launching a pipeline or using a schedule or sensor that is configured with an env variable
a

Alessandro Marrella

03/30/2021, 4:25 PM
Ah ok makes sense, will try adding it to the daemon thanks!
actually, restarting the deployment worked! (without needing to update the daemon) I guess configmap env variables get only loaded when the container is created
1
r

rex

03/30/2021, 4:38 PM
oh what version of Helm are you using? the deployment should recreate the pods if the env variables change (as of 0.11.2) https://github.com/dagster-io/dagster/commit/7f1af87588ca0ada20fece49cfe8030e39d734f5
🙌 1
a

Alessandro Marrella

03/30/2021, 4:39 PM
Still on 0.10.9 at the moment, but that's great to hear! 🙇
2 Views