File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ Versioning](http://semver.org/spec/v2.0.0.html).
11
11
- Added the ` APIKey ` resource and HTTP API support for POST, GET, and DELETE.
12
12
- Added sensuctl commands to manage the ` APIKey ` resource.
13
13
- Added support for api keys to be used in api authentication.
14
+ - Added support for sensu-backend service environment variables
14
15
15
16
## [ 5.14.1] - 2019-10-16
16
17
Original file line number Diff line number Diff line change 8
8
"os"
9
9
"os/signal"
10
10
"path/filepath"
11
+ "strings"
11
12
"syscall"
12
13
13
14
corev2 "github.com/sensu/sensu-go/api/core/v2"
@@ -412,6 +413,10 @@ func StartCommand(initialize initializeFunc) *cobra.Command {
412
413
viper .RegisterAlias (deprecatedFlagEtcdNodeName , flagEtcdNodeName )
413
414
viper .RegisterAlias (deprecatedFlagEtcdPeerURLs , flagEtcdPeerURLs )
414
415
416
+ viper .SetEnvPrefix ("sensu_backend" )
417
+ viper .SetEnvKeyReplacer (strings .NewReplacer ("-" , "_" ))
418
+ viper .AutomaticEnv ()
419
+
415
420
// Use our custom template for the start command
416
421
cobra .AddTemplateFunc ("categoryFlags" , categoryFlags )
417
422
cmd .SetUsageTemplate (startUsageTemplate )
You can’t perform that action at this time.
0 commit comments