Mykola Palamarchuk
04/26/2022, 2:07 PMincludeConfigInLaunchedRuns
!
But that doesn't work for me. I believe that's because my deployments live in separate k8s namespace. Is that the reason?johann
04/26/2022, 2:08 PMMykola Palamarchuk
04/26/2022, 2:29 PMresources:
my_resource:
config:
my_param:
env: MY_ENV_VAR
Where my_param
is defined as StringSource
In helm chart (I use separate dagster/dagster-user-deployments) I have configuration like:
deployments:
- name: "my_deployments"
envConfigMaps:
- name: my-env-configmap
includeConfigInLaunchedRuns:
enabled: true
which provide MY_ENV_VAR
(it is actually provided to deployments pod, i've checked from inside it).
But when I run my job from Dagit launchpad I see the error like this:
dagster.config.errors.PostProcessingError: You have attempted to fetch the environment variable "MY_ENV_VAR" which is not set. In order for this execution to succeed it must be set in this environment.
daniel
04/26/2022, 2:33 PMMykola Palamarchuk
04/26/2022, 2:47 PMjobNamespace
parameter of k8sRunLauncher
, but that does not help if you have more than one deployments in different namespaces (which is the target for us).Mykola Palamarchuk
04/26/2022, 6:07 PMdaniel
04/26/2022, 6:07 PMdaniel
04/26/2022, 6:09 PMdaniel
04/27/2022, 2:15 AMMykola Palamarchuk
04/27/2022, 9:37 AMjobNamespace
in the k8sRunLauncher
configuration, so multi-namespace deployments scenario is not possible. Probably there should be an additional option like runJobsInDeploymentNamespace
to make it compatible.daniel
04/27/2022, 10:57 AMdaniel
04/27/2022, 4:20 PM