Skip to content

feat: kube-flagd-proxy deployment - #412

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

james-milligan merged 39 commits into
open-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 <[email protected]>
@james-milligan james-milligan changed the title POC: flagd-kube-proxy deployment feat: POC flagd-kube-proxy deployment Mar 22, 2023
Comment thread config/rbac/kustomization.yaml Resolved
Comment thread webhooks/pod_webhook.go Resolved
Comment thread webhooks/pod_webhook.go Resolved
@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 Resolved
Comment thread chart/open-feature-operator/values.yaml Resolved
Signed-off-by: James Milligan <[email protected]>
Comment thread webhooks/pod_webhook.go Resolved
@codecov

codecov Bot commented Mar 24, 2023 •

Copy link
Copy Markdown

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 <[email protected]>
Signed-off-by: James Milligan <[email protected]>
Signed-off-by: James Milligan <[email protected]>
Signed-off-by: James Milligan <[email protected]>
Signed-off-by: James Milligan <[email protected]>
Signed-off-by: James Milligan <[email protected]>
@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 <[email protected]>
Signed-off-by: James Milligan <[email protected]>
Signed-off-by: James Milligan <[email protected]>
Signed-off-by: James Milligan <[email protected]>
Signed-off-by: James Milligan <[email protected]>
Signed-off-by: James Milligan <[email protected]>
Signed-off-by: James Milligan <[email protected]>
Signed-off-by: James Milligan <[email protected]>
@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 <[email protected]>
Comment thread chart/open-feature-operator/README.md Resolved

@thisthat thisthat left a comment

Copy link
Copy Markdown
Member

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 <[email protected]>
Signed-off-by: James Milligan <[email protected]>
Signed-off-by: James Milligan <[email protected]>
Signed-off-by: James Milligan <[email protected]>
Signed-off-by: James Milligan <[email protected]>
Signed-off-by: James Milligan <[email protected]>
@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