Alex Ferrero
09/16/2024, 8:59 AMLaurens Vijnck
09/16/2024, 9:05 AMLaurens Vijnck
09/16/2024, 9:06 AM--from-env
flag that allows reading from one env, and writing to another. Not sure if this is what you're looking for
https://github.com/kedro-org/kedro/issues/4155Laurens Vijnck
09/16/2024, 9:07 AMbase
and overriding entries in another env, e.g., cloud
. Kedro will load both base and cloud, and give priority to configuration in cloudJose Luis Lavado Sánchez
09/16/2024, 9:07 AMJose Luis Lavado Sánchez
09/16/2024, 9:08 AM--from-env
is the solution, not sureLaurens Vijnck
09/16/2024, 9:08 AMbase
and a custom environment should do the trick no?Laurens Vijnck
09/16/2024, 9:09 AMJose Luis Lavado Sánchez
09/16/2024, 9:10 AMLaurens Vijnck
09/16/2024, 9:11 AMLaurens Vijnck
09/16/2024, 9:13 AMLaurens Vijnck
09/16/2024, 9:14 AMJose Luis Lavado Sánchez
09/16/2024, 9:15 AMdev
it will look for /conf/dev
and if it do not found the dataset names look for them on /conf/base
? If that the case I can make it work with thatLaurens Vijnck
09/16/2024, 9:17 AM--from-env
flag would cover your use-case already as well, you will only be reading stuff from this env.
What the flag does is, it loads the --from-env
catalog, and it attempts to override all input datasets of the selected pipeline (or selection or nodes) to use the catalog entries from the --from-env
. (it currently errors out of the input dataset does not exist in the from-env
but you could choose to skip the error, and default to the catalog entry from the env
Laurens Vijnck
09/16/2024, 9:17 AMLaurens Vijnck
09/16/2024, 9:17 AMJose Luis Lavado Sánchez
09/16/2024, 9:20 AM--from-env prod --env prod_A
on the context I will get that the environment is prod_A
but I will get the catalog from /conf/prod/catalog.yml
?Laurens Vijnck
09/16/2024, 11:12 AMLaurens Vijnck
09/16/2024, 11:12 AMJose Luis Lavado Sánchez
09/16/2024, 11:20 AMLaurens Vijnck
09/16/2024, 11:46 AMMerel
09/17/2024, 4:47 PMdev
it will look for /conf/dev
and if it do not found the dataset names look for them on /conf/base
?" this is exactly how Kedro works as described here:
https://docs.kedro.org/en/stable/configuration/configuration_basics.html#configuration-environments
You can use settings to specify what your default overriding environment and base environments should be if you want them to be different from "base" and "local": https://docs.kedro.org/en/stable/configuration/configuration_basics.html#how-to-change-the-default-overriding-environmentJose Luis Lavado Sánchez
09/18/2024, 7:41 AM