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

Marc Gris

07/18/2023, 1:12 PM
Hi again ! Is there a way to template / interpolate in
catalog.yml
values that are defined in
parameters.yml
ex: in
conf/base/parameters.yml
Copy code
tenant_id: xyz
and in
conf/base/catalog.yml
Copy code
_tenant_id: ${tenant_id}
Thx in advance
n

Nok Lam Chan

07/18/2023, 1:14 PM
Which config loader are you using?
For templateconfigloader, define
xyz
in
globals.yml
and it can be applied globally in both parameters.yml and catalog.yml
m

Marc Gris

07/18/2023, 2:47 PM
Thx Nok ! I was using OmegaConf… 😅 It gets a little tricky to keep between the different config loaders behaviors / expectations… Can you please confirm: As I have understood it, TemplateConfigLoader will be soon deprecated in favor of OmegaConf ? Correct ? If so… Are you aware of some plans to allow interpolation into the catalog from params with OmegaConfigLoader ? Thx
m

Merel

07/18/2023, 3:15 PM
@Marc Gris Yes we’re planning to add a similar global feature to
OmegaConfigLoader
soon 🙂
👍🏼 1
m

Marc Gris

07/18/2023, 3:48 PM
Thx @Merel for confirming this 🙏🏼
3 Views