Skip to content
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: Decouple feature flag spec from flagd config #276

Merged
merged 37 commits into from
Jan 16, 2023
Merged

feat: Decouple feature flag spec from flagd config #276

merged 37 commits into from
Jan 16, 2023

Conversation

james-milligan
Copy link
Contributor

@james-milligan james-milligan commented Dec 12, 2022

This PR

  • deprecates the flagDConfig field of the FeatureflagConfiguration crd
  • introduces a new CRD called FlagSourceConfiguration to handle the config
  • new annotation openfeature.dev/flagsourceconfiguration and associated documentation

Related Issues

#274

Notes

Follow-up Tasks

How to test

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>
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>
@james-milligan
Copy link
Contributor Author

Ill expand the test suite once everyone is happy with the approach

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.

generated charts need to be removed (i can't comment on the file)

config/crd/kustomization.yaml Outdated Show resolved Hide resolved
config/manager/manager.yaml Outdated Show resolved Hide resolved
Signed-off-by: James Milligan <james@omnant.co.uk>
Signed-off-by: James Milligan <james@omnant.co.uk>
index.yaml Outdated Show resolved Hide resolved
Signed-off-by: James Milligan <james@omnant.co.uk>
Copy link
Member

@beeme1mr beeme1mr left a comment

Choose a reason for hiding this comment

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

Did you mean to include a .DT_Store? Apparently you're on a Mac 😄

@james-milligan
Copy link
Contributor Author

Did you mean to include a .DT_Store? Apparently you're on a Mac 😄

caught using git add .

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

codecov-commenter commented Dec 14, 2022

Codecov Report

Merging #276 (d54d8da) into main (15ad251) will decrease coverage by 0.07%.
The diff coverage is 50.81%.

@@            Coverage Diff             @@
##             main     #276      +/-   ##
==========================================
- Coverage   50.90%   50.82%   -0.08%     
==========================================
  Files           3        4       +1     
  Lines         444      486      +42     
==========================================
+ Hits          226      247      +21     
- Misses        202      221      +19     
- Partials       16       18       +2     
Impacted Files Coverage Δ
controllers/flagdconfiguration_controller.go 0.00% <0.00%> (ø)
webhooks/pod_webhook.go 67.41% <60.78%> (-0.21%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@james-milligan james-milligan marked this pull request as draft December 21, 2022 15:48
@james-milligan
Copy link
Contributor Author

Converting to draft until I return from my Christmas break! 🎅

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>
@james-milligan james-milligan marked this pull request as ready for review January 3, 2023 17:39
Signed-off-by: James Milligan <james@omnant.co.uk>
@beeme1mr beeme1mr linked an issue Jan 5, 2023 that may be closed by this pull request
6 tasks
docs/annotations.md Outdated Show resolved Hide resolved
james-milligan and others added 5 commits January 5, 2023 14:22
Co-authored-by: Michael Beemer <beeme1mr@users.noreply.github.com>
Signed-off-by: James Milligan <75740990+james-milligan@users.noreply.github.com>
Signed-off-by: James Milligan <james@omnant.co.uk>
Signed-off-by: James Milligan <james@omnant.co.uk>
@beeme1mr
Copy link
Member

Hey @toddbaert @AlexsJones, any concerns about this PR? It would be great to get this merged so @james-milligan can add support for these settings in Helm.

Copy link
Member

@toddbaert toddbaert left a comment

Choose a reason for hiding this comment

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

Hey @toddbaert @AlexsJones, any concerns about this PR? It would be great to get this merged so @james-milligan can #271.

@beeme1mr My only concern was this which is resolved now. Approved.

Copy link
Member

@AlexsJones AlexsJones left a comment

Choose a reason for hiding this comment

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

looks fine

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>
@james-milligan james-milligan merged commit fa0825a into open-feature:main Jan 16, 2023
@james-milligan james-milligan deleted the flagdspec branch January 16, 2023 11:23
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.

Decouple feature flag spec from flagd config
6 participants