hi! is there a way to pass an env variable to sens...
# announcements
a
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
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
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
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
Still on 0.10.9 at the moment, but that's great to hear! 🙇