-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat!: Support Multiple Syncs #256
feat!: Support Multiple Syncs #256
Conversation
Signed-off-by: James Milligan <james@omnant.co.uk>
Signed-off-by: James Milligan <james@omnant.co.uk>
Signed-off-by: James Milligan <james@omnant.co.uk>
Signed-off-by: James Milligan <james@omnant.co.uk>
Signed-off-by: James Milligan <james@omnant.co.uk>
Codecov Report
@@ Coverage Diff @@
## main #256 +/- ##
==========================================
- Coverage 56.18% 50.46% -5.73%
==========================================
Files 3 3
Lines 388 432 +44
==========================================
Hits 218 218
- Misses 156 199 +43
- Partials 14 15 +1
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
converting to draft to solve versioning issues |
config/crd/bases/core.openfeature.dev_featureflagconfigurations.yaml
Outdated
Show resolved
Hide resolved
I think this would be backward compatible... is this a completely dumb suggestion? @james-milligan @skyerus @AlexsJones EDIT: as mentioned by @james-milligan , annotations can only have string values. |
Unfortunately the annotation values must be of type string - I agree an array would be far nicer! |
welp, that explains that. 😅 |
ill update the parsing to assume that the current requests namespace is to be used if none is defined, this will keep it backwards compatible (excluding the CRD changes required to enable the remote/http sync) |
Signed-off-by: James Milligan <james@omnant.co.uk>
…gan/open-feature-operator into multiple-flag-config
Signed-off-by: James Milligan <james@omnant.co.uk>
Signed-off-by: James Milligan <james@omnant.co.uk>
Signed-off-by: James Milligan <james@omnant.co.uk>
e2e tests will continue to fail until the corresponding PR in flagd is merged, but I have tested it locally |
Signed-off-by: James Milligan <james@omnant.co.uk>
Signed-off-by: James Milligan <james@omnant.co.uk>
Signed-off-by: James Milligan <james@omnant.co.uk>
Co-authored-by: Skye Gill <gill.skye95@gmail.com> Signed-off-by: James Milligan <75740990+james-milligan@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work young man.
Please make sure this doesn't break the demo/watchman
Corresponding OFO changes [here](open-feature/open-feature-operator#256) <!-- 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 --> - refactors the start command flags to remove `--sync-provider` - multiple `--uri` flags can be passed indicating the use of different existing `sync-provider` types, all of which will work - uses a prefix on the uri to define the `sync-provider`; `http(s)://` will be passed to the http sync, `file://` will be passed to the file path sync and the Kubernetes sync uses the following pattern `core.openfeature.dev/{namespace}/{name}`, this will also allow for the Kubernetes sync to watch multiple `FeatureFlagConfigurations` from different namespaces. - adds deprecation warning when the `--sync-provider` flag is passed as an argument `./flagd start --uri file://etc/flagd/end-to-end.json --uri core.openfeature.dev/test/end-to-end-2` ### Related Issues <!-- add here the GitHub issue that this PR resolves if applicable --> open-feature/open-feature-operator#251 ### Notes <!-- any additional notes for this PR --> ### Follow-up Tasks ### How to test <!-- if applicable, add testing instructions under this section --> Signed-off-by: James Milligan <james@omnant.co.uk> Signed-off-by: James Milligan <75740990+james-milligan@users.noreply.github.com> Co-authored-by: Todd Baert <toddbaert@gmail.com>
Signed-off-by: James Milligan <james@omnant.co.uk>
…gan/open-feature-operator into multiple-flag-config
Signed-off-by: James Milligan <james@omnant.co.uk>
Signed-off-by: James Milligan <james@omnant.co.uk>
Signed-off-by: James Milligan <james@omnant.co.uk>
This PR is ready to merge following this release |
Signed-off-by: James Milligan james@omnant.co.uk
corresponding flagd changes here
This PR
openfeature.dev/featureflagconfiguration
to allow for multiple syncs to be provided to the flagd sidecar, the annotation value is now a comma separated list with each value providing both the namespace and the CRD name separated with a/
, if no namespace is provided it is assumed that the crd is in the same namespace as the deployment e.g."end-to-end, test/end-to-end-2"
Related Issues
#251
Notes
Follow-up Tasks
How to test