add embedded-config flag, override config.File if present

This commit is contained in:
A.Unger committed 2020-03-13 10:52:42 +01:00
1 parent 8c1f12a164
commit 739d226d09
1 file changed
+6
+6
View File
@@ -68,6 +68,12 @@ func ServerWithConfig(cfg *config.Config) []cli.Flag {
EnvVars: []string{"PROXY_TRACING_TYPE"},
Destination: &cfg.Tracing.Type,
},
&cli.StringFlag{
Name: "embedded-config",
Usage: "Provided config file while running on single oCIS binary mode.",
EnvVars: []string{"PROXY_EMBEDDED_CONFIG"},
Destination: &cfg.File,
},
&cli.StringFlag{
Name: "tracing-endpoint",
Value: "",