https://flyte.org logo
#ask-the-community
Title
# ask-the-community
a

Ariel Kaspit

06/11/2023, 2:36 PM
Hi everyone. I’m curious to understand how to inject env vars to workflows based on domain. I deploy Flyte on GKE cluster. Tnx
j

Jay Ganbat

06/11/2023, 7:19 PM
i think
FlyteContext
might be a good object to checkout, its available through
Copy code
ctx = FlyteContext.current_context()
and i saw there is an object called
serialization_settings
in
FlyteContext
that has the domain
Copy code
class SerializationSettings(object):
    """
    These settings are provided while serializing a workflow and task, before registration. This is required to get
    runtime information at serialization time, as well as some defaults.

    image_config: ImageConfig
    project: typing.Optional[str] = None
    domain: typing.Optional[str] = None
    version: typing.Optional[str] = None
    env: Optional[Dict[str, str]] = None