https://kedro.org/ logo
#questions
Title
# questions
j

Jorge sendino

02/09/2023, 5:15 PM
Hello everyone, is there a way to modify
ConfigLoader
to namespace catalog and parameter entries using the folder structure inside
conf
? For example, I have:
Copy code
conf/
    catalog/
       ns1/
       ns2/
    parameters/
       ns1/
       ns2/
Ideally I would modify
ConfigLoader
to automatically add
ns1
and
ns2
as namespaces for all entries in the catalog and parameters below that folder. Is this possible?
d

datajoely

02/09/2023, 6:20 PM
The folder structure is not taken into account, Kedro currently only looks for keys
it would be quite a change to make it folder scoped
j

Jorge sendino

02/09/2023, 6:23 PM
so best way is to force the namespace inside the individual catalog/parameters entries in the yml files?
d

datajoely

02/09/2023, 6:23 PM
that’s the way its designed
in general the config loader doesn’t care about the folder structure below base/local/custom
all yaml files with the right names are scooped up and merged
in general this may be easier in 0.19.x as we make some of the config loader changes
3 Views