forked from open-feature/flagd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore!: unify sources configuration handling (open-feature#560)
## This PR This PR is best reviewed by going through the new documentation [1] Restructured flagd startup configuration handling with respect to sync providers. Documentation is updated [1] & handling of prefixes is cleared (ex:- removal of grpc(s):// prefix for `--source` based sync provider startup argument) ## Breaking change Contains a breaking change with respect to how sync provider URIs are handled - **what** -source configuration URI parsing - **why** - align source configuration handling among different sources & avoid mix uage of prefixes to aling with documented behavior - **how** - source configuration no longer validate or parse URI prefixes. This means, existing source configuration strings/files may need an upgrade if they used prefixes in URIs. The upgrade is to simply remove any prefixes from source configuration URIs For example, **old** ``` yaml sources: - uri: grpcs://my-flag-source:8080 # mixed usage of schema shared with URI prefixes ❌ provider: grpc certPath: /certs/ca.cert ``` **new** ``` yaml sources: - uri: my-flag-source:8080 provider: grpc tls: true. # new way to convey secure connection requirement ✅ certPath: /certs/ca.cert ``` ____ Is a pre-requisite of open-feature/open-feature-operator#389 [1] - https://github.com/open-feature/flagd/blob/2a4783ef61eb3756e7a3f99aae596392906cd765/docs/configuration/configuration.md --------- Signed-off-by: Kavindu Dodanduwa <kavindudodanduwa@gmail.com> Signed-off-by: Kavindu Dodanduwa <Kavindu-Dodan@users.noreply.github.com> Co-authored-by: Todd Baert <toddbaert@gmail.com>
- Loading branch information
1 parent
8c00040
commit 7f4888a
Showing
8 changed files
with
247 additions
and
262 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.