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
feat: Add toggle for disabling getMetadata request (#1693)
<!-- Please use this template for your pull request. -->
<!-- Please use the sections that you need and delete other sections -->
## This PR
<!-- add the description of the PR here -->
- adds a toggle `disable-sync-metadata` for the Sync Service to disable
or enable the deprecated `getMetadata` request
### Related Issues
[#1688 [FEATURE] Temporary Context Enrichment
toggle](#1688)
---------
Signed-off-by: Konvalinka <[email protected]>
Copy file name to clipboardExpand all lines: docs/reference/flagd-cli/flagd_start.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,7 @@ flagd start [flags]
14
14
-H, --context-from-header stringToString add key-value pairs to map header values to context values, where key is Header name, value is context key (default [])
15
15
-X, --context-value stringToString add arbitrary key value pairs to the flag evaluation context (default [])
16
16
-C, --cors-origin strings CORS allowed origins, * will allow all origins
17
+
--disable-sync-metadata Disables the getMetadata endpoint of the sync service. Defaults to false, but will default to true in later versions.
17
18
-h, --help help for start
18
19
-z, --log-format string Set the logging format, e.g. console or json (default "console")
19
20
-m, --management-port int32 Port for management operations (default 8014)
Copy file name to clipboardExpand all lines: flagd/cmd/start.go
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,7 @@ const (
36
36
syncPortFlagName="sync-port"
37
37
syncSocketPathFlagName="sync-socket-path"
38
38
uriFlagName="uri"
39
+
disableSyncMetadata="disable-sync-metadata"
39
40
contextValueFlagName="context-value"
40
41
headerToContextKeyFlagName="context-from-header"
41
42
streamDeadlineFlagName="stream-deadline"
@@ -89,6 +90,7 @@ func init() {
89
90
flags.StringToStringP(headerToContextKeyFlagName, "H", map[string]string{}, "add key-value pairs to map "+
90
91
"header values to context values, where key is Header name, value is context key")
91
92
flags.Duration(streamDeadlineFlagName, 0, "Set a server-side deadline for flagd sync and event streams (default 0, means no deadline).")
93
+
flags.Bool(disableSyncMetadata, false, "Disables the getMetadata endpoint of the sync service. Defaults to false, but will default to true in later versions.")
0 commit comments