Let me start with the notion that Dagster is amazi...
# ask-community
p
Let me start with the notion that Dagster is amazing. The data world needs this! dagster spin That having said, I could use some advice: What is currently (0.14.5) the best way to pass env vars and (Kubernetes) secrets to jobs? It seems odd to me that the env vars and secrets that are set in the user code deployment are not passed on to the job pods. We have some awkward workarounds for this in place atm: ā€¢ We set all secrets in
k8sRunLauncher.envSecrets
which means all these secrets will be set as env vars off the pods of every single job. Furthermore, if we add a secret we need to do a helm upgrade of the dagster deployment. Both are not desirable. ā€¢ We set all env vars directly in the Docker container, but that means there is a different container depending on the environment you deploy to. Also not desirable.
plus1 5
Related issues on Git: env vars and secrets
d
Hi Pieter - agree with you that this is one of the biggest rough edges with using dagster in production right now. We're actively working on having the right internal APIs to thread information from the user code deployment all the way through to the launched run pods (see https://github.com/dagster-io/dagster/pull/6925 for an example). Still a few weeks out I think, but hopefully will have more to share soon about better solutions that the awkward workarounds that you mentioned.
šŸ‘ 1
p
Great to hear you are working on this @daniel šŸ™
d
Just to follow up here, there's actually a PR out now that will let us close that issue out (just some details to sort out about backwards compatibility): https://github.com/dagster-io/dagster/pull/7236
p
Great that this is so close to being deployed now!
condagster 1
Thanks for the update
Seems that 0.14.19 contains the feature, right? šŸ˜ƒ The PR you shared is still Open so Iā€™m a bit confused
d
That's right - I think it's likely to go out in the release next week
p
šŸŽ‰