Skip to content

Commit

Permalink
feat: deprecate dedicated flagd in-process provider (#396)
Browse files Browse the repository at this point in the history
Signed-off-by: Kavindu Dodanduwa <kavindudodanduwa@gmail.com>
Signed-off-by: Kavindu Dodanduwa <Kavindu-Dodan@users.noreply.github.com>
Co-authored-by: Giovanni Liva <giovanni.liva@dynatrace.com>
  • Loading branch information
Kavindu-Dodan and thisthat committed Dec 5, 2023
1 parent f417648 commit 62ac471
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion providers/flagd-in-process/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# In-process Flagd Provider
# DEPRECATED - In-process Flagd Provider

> [!IMPORTANT]
> This provider is DEPRECATED and will be removed soon.
> [flagd provider](../flagd/README.md) now supports in-process flag evaluation and it will be maintained as a single package.
This provider implements parts of the functionality of [Flagd](https://github.com/open-feature/flagd), and follows its
specification for [in-process providers](https://flagd.dev/reference/specifications/in-process-providers/).
Expand Down
2 changes: 2 additions & 0 deletions providers/flagd-in-process/pkg/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ type connectionInfo struct {

type connectionState int

// Deprecated: Please use flagd with WithInProcessResolver option instead of this dedicated provider
type Provider struct {
ctx context.Context
cancelFunc context.CancelFunc
Expand All @@ -80,6 +81,7 @@ type ProviderConfiguration struct {

type ProviderOption func(*Provider)

// Deprecated : Please use flagd with WithInProcessResolver option instead of this dedicated provider
func NewProvider(ctx context.Context, opts ...ProviderOption) *Provider {
ctx, cancel := context.WithCancel(ctx)
provider := &Provider{
Expand Down

0 comments on commit 62ac471

Please sign in to comment.