-
Notifications
You must be signed in to change notification settings - Fork 6
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
CLI vs env vars #328
Comments
// 1. Defaults: none at the moment (defaults are set together with flags)
// 2. Override via environment variables
// NOTE:
// Since there is no viper env prefix set, we use raw viper key names from env vars, i.e. $CONTEXT will set
// the context config key, something that is hard-wired below as DATAMON_CONTEXT...
//
// Setting a prefix like "DATAMON" would be impractical, since DATAMON_CONFIG (the location of the local config file)
// would conflict with the Config confif key (the bucket of the remote config).
//
// TODO: IMHO we should rename the 'config' key as 'remoteConfig', remove the DATAMON_CONTEXT code below and use
// viper.SetEnvPrefix("DATAMON").
// |
|
i'd like to make specific mention of the way the this data path around the golang binary (insomuch as the OS globals are used rather, even, than a global in a golang package) is troubling enough in its own right that i don't think we can make any universal decisions about env vars without first figuring out how to pass the token usually obtained via or we could at least ensure that datamon only writes to |
Tracing here a thread in PR, for follow-up:
The text was updated successfully, but these errors were encountered: