You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
0 commit comments