Skip to content

feat: kube-flagd-proxy deployment#412

Merged
james-milligan merged 39 commits intoopen-feature:mainfrom
james-milligan:kube-proxy-deployment
Mar 31, 2023
Merged

feat: kube-flagd-proxy deployment#412
james-milligan merged 39 commits intoopen-feature:mainfrom
james-milligan:kube-proxy-deployment

Conversation

@james-milligan
Copy link
Copy Markdown
Contributor

This PR

  • adds new provider type kube-proxy
  sources:
  - source: default/example
    provider: kube-proxy

Use the kube-proxy provider + create a deployment with the normal deployment path, the operator will deploy Kubernetes proxy, denying pod deployment until it is ready to receive requests

Related Issues

Fixes #1234523

Notes

Follow-up Tasks

How to test

Signed-off-by: James Milligan <james@omnant.co.uk>
@james-milligan james-milligan changed the title POC: flagd-kube-proxy deployment feat: POC flagd-kube-proxy deployment Mar 22, 2023
Signed-off-by: James Milligan <james@omnant.co.uk>
Comment thread apis/core/v1alpha1/flagsourceconfiguration_types.go Outdated
Comment thread config/rbac/kustomization.yaml Outdated
Comment thread webhooks/pod_webhook.go
Comment thread webhooks/pod_webhook.go Outdated
@Kavindu-Dodan
Copy link
Copy Markdown
Contributor

Cool work. I like the approach you took with provider: kube-proxy option.

Look forward to the refined PR

Comment thread webhooks/pod_webhook.go Outdated
Signed-off-by: James Milligan <james@omnant.co.uk>
Comment thread chart/open-feature-operator/values.yaml Outdated
Signed-off-by: James Milligan <james@omnant.co.uk>
Comment thread webhooks/pod_webhook.go Outdated
Signed-off-by: James Milligan <james@omnant.co.uk>
Signed-off-by: James Milligan <james@omnant.co.uk>
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 24, 2023

Codecov Report

Merging #412 (eb7b15c) into main (5ba5bc9) will decrease coverage by 6.50%.
The diff coverage is 51.76%.

@@            Coverage Diff             @@
##             main     #412      +/-   ##
==========================================
- Coverage   84.26%   77.76%   -6.50%     
==========================================
  Files          19       21       +2     
  Lines        1061     1300     +239     
==========================================
+ Hits          894     1011     +117     
- Misses        138      248     +110     
- Partials       29       41      +12     
Impacted Files Coverage Δ
...pis/core/v1alpha1/flagsourceconfiguration_types.go 98.76% <0.00%> (-1.24%) ⬇️
pkg/utils/utils.go 38.09% <0.00%> (-61.91%) ⬇️
webhooks/pod_webhook.go 78.23% <5.26%> (-11.00%) ⬇️
...rollers/core/flagsourceconfiguration/controller.go 46.37% <57.14%> (+1.21%) ⬆️
webhooks/error_types.go 57.14% <57.14%> (ø)
...s/core/flagsourceconfiguration/kube-flagd-proxy.go 77.41% <77.41%> (ø)
webhooks/pod_webhook_deprecated.go 47.61% <100.00%> (ø)
Flag Coverage Δ
component-tests 75.83% <12.30%> (-9.04%) ⬇️
unit-tests 61.69% <48.62%> (-2.78%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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 james-milligan changed the title feat: POC flagd-kube-proxy deployment feat: flagd-kube-proxy deployment Mar 28, 2023
@james-milligan james-milligan marked this pull request as ready for review March 28, 2023 12:03
@james-milligan james-milligan requested a review from a team March 28, 2023 12:03
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>
Signed-off-by: James Milligan <james@omnant.co.uk>
Signed-off-by: James Milligan <james@omnant.co.uk>
@james-milligan james-milligan changed the title feat: flagd-kube-proxy deployment feat: kube-flagd-proxy deployment Mar 29, 2023
Signed-off-by: James Milligan <james@omnant.co.uk>
Comment thread chart/open-feature-operator/README.md Outdated
Comment thread controllers/core/flagsourceconfiguration/kube-flagd-proxy.go Outdated
Comment thread controllers/core/flagsourceconfiguration/kube-flagd-proxy.go Outdated
james-milligan and others added 3 commits March 30, 2023 09:48
Co-authored-by: Giovanni Liva <giovanni.liva@dynatrace.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>
Signed-off-by: James Milligan <james@omnant.co.uk>
Copy link
Copy Markdown
Member

@thisthat thisthat left a comment

Choose a reason for hiding this comment

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

LGTM ✅

toddbaert pushed a commit to open-feature/flagd that referenced this pull request Mar 30, 2023
<!-- 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 -->

- renames package `kube-flagd-proxy` to `flagd-proxy`
- updates all references of `kube-flagd-proxy` to `flagd-proxy`

### Related Issues
<!-- add here the GitHub issue that this PR resolves if applicable -->


open-feature/open-feature-operator#412 (comment)

### Notes
<!-- any additional notes for this PR -->

### Follow-up Tasks
<!-- anything that is related to this PR but not done here should be
noted under this section -->
<!-- if there is a need for a new issue, please link it here -->

### 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 <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>
@toddbaert toddbaert self-requested a review March 31, 2023 16:12
@james-milligan james-milligan merged commit 651c63c into open-feature:main Mar 31, 2023
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