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

refactor: adder interface, rename data client #2991

Merged
merged 3 commits into from
Sep 13, 2023

Conversation

acpana
Copy link
Contributor

@acpana acpana commented Sep 6, 2023

Following up on punted work items from: #2852

  • simplifies the Injector interface for controllers; many controllers don't implement the interface funcs
  • renames references to (data) client

also rename InjectOpa

Signed-off-by: Alex Pana <8968914+acpana@users.noreply.github.com>
Signed-off-by: Alex Pana <8968914+acpana@users.noreply.github.com>
@codecov-commenter
Copy link

codecov-commenter commented Sep 6, 2023

Codecov Report

Patch coverage: 42.30% and project coverage change: +0.10% 🎉

Comparison is base (e138b24) 52.48% compared to head (d58bb22) 52.58%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2991      +/-   ##
==========================================
+ Coverage   52.48%   52.58%   +0.10%     
==========================================
  Files         134      134              
  Lines       11913    11891      -22     
==========================================
+ Hits         6252     6253       +1     
+ Misses       5170     5148      -22     
+ Partials      491      490       -1     
Flag Coverage Δ
unittests 52.58% <42.30%> (+0.10%) ⬆️

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

Files Changed Coverage Δ
pkg/controller/config/config_controller.go 60.37% <ø> (+2.71%) ⬆️
pkg/controller/constraint/constraint_controller.go 5.72% <0.00%> (+0.03%) ⬆️
...platestatus/constrainttemplatestatus_controller.go 70.58% <ø> (ø)
pkg/controller/expansion/expansion_controller.go 53.52% <ø> (+1.23%) ⬆️
pkg/controller/pubsub/pubsub_config_controller.go 12.50% <ø> (+0.81%) ⬆️
...controller/externaldata/externaldata_controller.go 60.00% <40.00%> (+2.46%) ⬆️
...onstrainttemplate/constrainttemplate_controller.go 61.05% <69.23%> (+1.39%) ⬆️

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@maxsmythe maxsmythe left a comment

Choose a reason for hiding this comment

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

LGTM

@acpana acpana marked this pull request as ready for review September 8, 2023 20:03
@acpana
Copy link
Contributor Author

acpana commented Sep 8, 2023

@ritazh / @sozercan PTAL 🙏🏼

Copy link
Member

@sozercan sozercan left a comment

Choose a reason for hiding this comment

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

Thank you! LGTM

@maxsmythe maxsmythe merged commit 7243743 into open-policy-agent:master Sep 13, 2023
15 checks passed
salaxander pushed a commit to salaxander/gatekeeper that referenced this pull request Sep 13, 2023
Signed-off-by: Alex Pana <8968914+acpana@users.noreply.github.com>
Co-authored-by: Sertaç Özercan <852750+sozercan@users.noreply.github.com>
Mattes83 pushed a commit to Mattes83/gatekeeper that referenced this pull request Oct 25, 2023
Signed-off-by: Alex Pana <8968914+acpana@users.noreply.github.com>
Co-authored-by: Sertaç Özercan <852750+sozercan@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants