Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tooling to debug and validate env vars #32

Open
Firehed opened this issue Sep 12, 2022 · 1 comment
Open

Add tooling to debug and validate env vars #32

Firehed opened this issue Sep 12, 2022 · 1 comment

Comments

@Firehed
Copy link
Owner

Firehed commented Sep 12, 2022

Especially in a K8S environment, it would be helpful to add commands to identify and diagnose env var issues (not set, invalid casts, etc). Being able to integrate this into health checks can increase reliability and stability of releases.

@Firehed
Copy link
Owner Author

Firehed commented Sep 21, 2022

Note: a fair bit of this already exists when reading the container. In library-consumer-space, it's straightforward enough to

a) read the config files,
b) filter to EnvVarInterface,
c) filter !hasDefault(), and
d) get the underlying env name with getName()

The latter two APIs are marked as @internal so it's somewhat inappropriate, but mechanically possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant