Skip to content

feat!: start command flag refactor#222

Merged
beeme1mr merged 18 commits intoopen-feature:mainfrom
james-milligan:sync-provider-refactor
Nov 30, 2022
Merged

feat!: start command flag refactor#222
beeme1mr merged 18 commits intoopen-feature:mainfrom
james-milligan:sync-provider-refactor

Conversation

@james-milligan
Copy link
Contributor

@james-milligan james-milligan commented Nov 23, 2022

Signed-off-by: James Milligan james@omnant.co.uk

Corresponding OFO changes here

This PR

  • 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

open-feature/open-feature-operator#251

Notes

Follow-up Tasks

How to test

Signed-off-by: James Milligan <james@omnant.co.uk>
@toddbaert
Copy link
Member

This makes sense to me. I think watching multiple k8s-resources is sort of a must have, and this seems like a clean way to do it. I'll test this out a bit, but I like the approach.

Signed-off-by: James Milligan <james@omnant.co.uk>
Signed-off-by: James Milligan <james@omnant.co.uk>
@james-milligan james-milligan marked this pull request as ready for review November 24, 2022 15:09
Signed-off-by: James Milligan <james@omnant.co.uk>
@toddbaert
Copy link
Member

toddbaert commented Nov 24, 2022

Tested this locally as well and everything works as expected, including updates, merging and warnings about duplicate flags across sources.. The experience is definitely improved.

I know some changes based on the OFO review are incoming so I'll wait to approve.

james-milligan and others added 3 commits November 25, 2022 10:55
Signed-off-by: James Milligan <james@omnant.co.uk>
Co-authored-by: Todd Baert <toddbaert@gmail.com>
Signed-off-by: James Milligan <75740990+james-milligan@users.noreply.github.com>
Signed-off-by: James Milligan <james@omnant.co.uk>
@james-milligan
Copy link
Contributor Author

#217

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>
Copy link
Contributor

@skyerus skyerus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, nice

Edit: is this not a breaking change?

Signed-off-by: James Milligan <james@omnant.co.uk>
@toddbaert
Copy link
Member

toddbaert commented Nov 29, 2022

LGTM, nice

Edit: is this not a breaking change?

I agree with @skyerus that this is breaking, since it breaks the command line. I think you should add a ! to the title.

EDIT: in fact I've done so, and approved.

@james-milligan james-milligan changed the title feat: start command flag refactor feat!: start command flag refactor Nov 29, 2022
@beeme1mr beeme1mr merged commit 14474cc into open-feature:main Nov 30, 2022
@james-milligan james-milligan deleted the sync-provider-refactor branch December 1, 2022 09:21
AlexsJones pushed a commit that referenced this pull request Dec 5, 2022
🤖 I have created a release *beep* *boop*
---


##
[0.2.7](v0.2.5...v0.2.7)
(2022-12-02)


### ⚠ BREAKING CHANGES

* start command flag refactor
([#222](#222))

### Features

* enable request logging via the --debug flag
([#226](#226))
([11954b5](11954b5))
* Resurrected the STATIC flag reason. Documented the caching strategy.
([#224](#224))
([5830592](5830592))
* snap ([#211](#211))
([c619844](c619844))
* start command flag refactor
([#222](#222))
([14474cc](14474cc))


### Miscellaneous Chores

* release v0.2.6
([93cfb78](93cfb78))
* release v0.2.7
([4a9f6df](4a9f6df))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
beeme1mr added a commit to open-feature/playground that referenced this pull request Jan 5, 2023
Addresses changes introduced by flagd 0.2.7 described [here](open-feature/flagd#222).

Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants