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

Allow setting benthos cli flags from environment variables #2580

Open
mikebaum opened this issue May 12, 2024 · 0 comments
Open

Allow setting benthos cli flags from environment variables #2580

mikebaum opened this issue May 12, 2024 · 0 comments
Labels
configuration Any tasks or issues relating to Benthos configuration enhancement

Comments

@mikebaum
Copy link

When running benthos, it would be nice if it was possible to configure the CLI flags via environment variables. This is especially useful when running benthos in a docker container. Here are suggestions for the environment variables corresponding to the CLI flags:

  • env-file - BENTHOS_ENV_FILE
  • log.level - BENTHOS_LOG_LEVEL
  • config - BENTHOS_CONFIG_FILE
  • resources - BENTHOS_RESOURCE_FILES (comma separated list of files)
  • chilled - BENTHOS_IGNORE_LINTING_ERRORS or BENTHOS_IGNORE_LINTER

Experimental Features:

  • templates - BENTHOS_TEMPLATES (comma separated list of files)
  • watcher - BENTHOS_WATCH_CONFIG

I would be more than willing to submit a PR for this.

@mihaitodor mihaitodor added enhancement configuration Any tasks or issues relating to Benthos configuration labels May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
configuration Any tasks or issues relating to Benthos configuration enhancement
Projects
None yet
Development

No branches or pull requests

2 participants