kapitan icon indicating copy to clipboard operation
kapitan copied to clipboard

[Logging] Enrich debug output with used ENVs

Open Moep90 opened this issue 3 years ago • 4 comments

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)))"

Moep90 avatar Sep 08 '22 10:09 Moep90

Potentially somewhere after this line should be good https://github.com/kapicorp/kapitan/blob/master/kapitan/cli.py#L568

ramaro avatar Sep 09 '22 19:09 ramaro

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.

github-actions[bot] avatar Oct 06 '23 00:10 github-actions[bot]

@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?

dav9 avatar Dec 08 '23 14:12 dav9