kapitan
kapitan copied to clipboard
[Logging] Enrich debug output with used ENVs
As I want to debug kapitan as ARGOCD Plugin, I (after 2.4) need to see the ENVS and their content in debug mode.
Therfore I'd like to dump every ENV + VALUE kapitan has loaded to stdout.
@ramaro any suggestion where it should be added?
My initial thought was to extend the logger.debug for all ref engines.
Current workaround:
$ python -c "import json, os;print(json.dumps(dict(os.environ)))"
Potentially somewhere after this line should be good https://github.com/kapicorp/kapitan/blob/master/kapitan/cli.py#L568
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 7 days.
@Moep90 I'm proposing this PR now: https://github.com/kapicorp/kapitan/pull/1099, it will add support for setting all kinds of logger errors. Would it help?