Hi everyone. I’m curious to understand how to inject env varsto workflows based on domain. I deploy Flyte on GKE cluster.
Tnx
m
magnificent-teacher-86590
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