A top level Config entry holder, that holds multiple different representations of the config.
Legacy means the INI style config files. YAML support is for the flytectl config file, which is there by default
when flytectl starts a sandbox
Reads the config Entry from the various sources in the following order,
read()
defread(
cfg: typing.Optional[ConfigFile],
):
Reads the config Entry from the various sources in the following order,
#. First try to read from the relevant environment variable,
#. If missing, then try to read from the legacy config file, if one was parsed.
#. If missing, then try to read from the yaml file.
The constructor for ConfigFile currently does not allow specification of both the ini and yaml style formats.
This section should contain options, where the option name is the friendly name of the image and the corresponding
value is actual FQN of the image. Example of how the section is structured
[images]
my_image1=docker.io/flyte:tag
Note that the tag is optional. If not specified it will be the default version identifier specified
my_image2=docker.io/flyte
:returns a dictionary of name: image<fqn+version> Version is optional
Reads the config entry from environment variable, the structure of the env var is current
FLYTE_{SECTION}_{OPTION} all upper cased. We will change this in the future.
:return: