Hi everyone. I’m curious to understand how to inje...
# ask-the-community
a
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
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