Massinissa Saïdi
02/08/2023, 1:59 PMconf/base
and conf/prod
environment and my credentials.yml
file in conf/local
. If I run kedro run
, will conf/local/credentials.yml
overwrite conf/base/credentials.yml
? And if I run kedro run --env prod
which credentials file will be used? I have the impression that it is the local file that is always used? Thank youdatajoely
02/08/2023, 2:00 PMkedro run --env base
Massinissa Saïdi
02/08/2023, 2:03 PMdatajoely
02/08/2023, 2:04 PMMassinissa Saïdi
02/08/2023, 2:05 PMlocal/credentials.yml
and smthg in prod/credentials.yml
I will get None valuedatajoely
02/08/2023, 2:11 PMMassinissa Saïdi
02/08/2023, 2:19 PMlocal/credentials.yml
i got this error:
No files found in ['/Users/.../conf/base', '/Users/.../conf/local'] matching the glob pattern(s): ('credentials*', 'credentials*/**', '**/credentials*')
warn(f"Credentials not found in your Kedro project config.\n{str(exc)}")
KedroSession
as
KedreSession.create().load_context()._get_config_credentials()
datajoely
02/08/2023, 2:41 PMAnkita Katiyar
02/08/2023, 2:43 PMkedro run --env prod
, the config will be read from conf/prod
and conf/local
will not be read.base
directory and then the run time env config which is local
by default but if you specify --env prod
it will load config only in prod
Massinissa Saïdi
02/08/2023, 3:26 PMKedreSession.create().load_context()._get_config_credentials()
datajoely
02/08/2023, 3:38 PMMassinissa Saïdi
02/08/2023, 3:58 PMKedreSession.create().load_context()._get_config_credentials()
returns only what in local/credentials.ymldatajoely
02/08/2023, 3:59 PMMassinissa Saïdi
02/08/2023, 4:07 PMdatajoely
02/08/2023, 5:12 PM