Skip to content

Commit 9926b95

Browse files
committed
feat: add intervalSeed source option
* adds an `intervalSeed` source option * enables configuration of deterministic offset to polling * disabled by default (no offset, wall-clock polling is maintained * improves sync source logging consistency ref #1945 Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
1 parent 7c501eb commit 9926b95

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

docs/reference/flagd-cli/flagd_start.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ flagd start [flags]
3131
-c, --server-cert-path string Server side tls certificate path
3232
-k, --server-key-path string Server side tls key path
3333
-d, --socket-path string Flagd unix socket path. With grpc the evaluations service will become available on this address. With http(s) the grpc-gateway proxy will use this address internally.
34-
-s, --sources string JSON representation of an array of SourceConfig objects. This object contains 2 required fields, uri (string) and provider (string). Documentation for this object: https://flagd.dev/reference/sync-configuration/#source-configuration
34+
-s, --sources string JSON representation of an array of SourceConfig objects. Required fields: uri (string) and provider (string). Optional source-specific fields are also available, see https://flagd.dev/reference/sync-configuration/#source-configuration
3535
--stream-deadline duration Set a server-side deadline for flagd sync and event streams (default 0, means no deadline).
3636
-g, --sync-port int32 gRPC Sync port (default 8015)
3737
-e, --sync-socket-path string Flagd sync service socket path. With grpc the sync service will be available on this address.

flagd/cmd/start.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,10 @@ func init() {
7272
)
7373
flags.StringSliceP(corsFlagName, "C", []string{}, "CORS allowed origins, * will allow all origins")
7474
flags.StringP(
75-
sourcesFlagName, "s", "", "JSON representation of an array of SourceConfig objects. This object contains "+
76-
"2 required fields, uri (string) and provider (string). Documentation for this object: "+
77-
"https://flagd.dev/reference/sync-configuration/#source-configuration",
75+
sourcesFlagName, "s", "", "JSON representation of an array of SourceConfig objects. "+
76+
"Required fields: uri (string) and provider (string). "+
77+
"Optional source-specific fields are also available, "+
78+
"see https://flagd.dev/reference/sync-configuration/#source-configuration",
7879
)
7980
flags.StringP(logFormatFlagName, "z", "console", "Set the logging format, e.g. console or json")
8081
flags.StringP(metricsExporter, "t", "", "Set the metrics exporter. Default(if unset) is Prometheus."+

0 commit comments

Comments
 (0)