-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bridge: load config from string (env var or cli flag) (#999)
## Motivation Writing out config data to disk can sometimes be awkward. Users of the Bridge docker image would either need to customize, using the bridge image as a base then add their config file to the fs, or otherwise use a volume mount (or similar). k8s users have the benefit of config maps, which can be represented as files on disk, but this is not always a good option. ## Solution Allows Bridge to load its config data from a string, which can be supplied as an env var or directly on the cli with `--cfg`. The original flag for specifying an alternative file path to read config data from (formerly `--cfg` or `-c`) has been renamed to `--cfg-file`. Sorry that's so confusing! - Use `--cfg` to pass config as string - Use `--cfg-file` to read from file, non-default loction Additionally, a naive "search path" has been provided to look for the default config file using a series of names: - `svix-bridge.yaml` - `svix-bridge.yml` - `svix-bridge.json` This was done specifically to formalize the fact we're advertising "we accept json config data" in the readme.
- Loading branch information
Showing
2 changed files
with
45 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters