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

Give driver a map of handler names to client.TargetHandler #185

Merged
merged 13 commits into from
Jan 25, 2022

Conversation

davis-haba
Copy link
Contributor

Signed-off-by: davis-haba davishaba@google.com

@davis-haba
Copy link
Contributor Author

@willbeason

Copy link
Member

@willbeason willbeason left a comment

Choose a reason for hiding this comment

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

Two minor changes, otherwise looks good

constraint/pkg/client/drivers/local/args.go Show resolved Hide resolved
constraint/pkg/client/drivers/local/local.go Outdated Show resolved Hide resolved
@davis-haba davis-haba force-pushed the add-handlers-to-driver branch 3 times, most recently from 7965325 to fd19a47 Compare January 20, 2022 14:24
@codecov-commenter
Copy link

codecov-commenter commented Jan 20, 2022

Codecov Report

Merging #185 (9b38a81) into master (5d06ded) will increase coverage by 0.19%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #185      +/-   ##
==========================================
+ Coverage   46.64%   46.84%   +0.19%     
==========================================
  Files          60       59       -1     
  Lines        2830     2818      -12     
==========================================
  Hits         1320     1320              
+ Misses       1266     1254      -12     
  Partials      244      244              
Flag Coverage Δ
unittests 46.84% <ø> (+0.19%) ⬆️

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

Impacted Files Coverage Δ
...eworks/constraint/pkg/client/drivers/local/args.go 75.00% <0.00%> (-8.34%) ⬇️
...y-agent/frameworks/constraint/pkg/client/client.go 71.98% <0.00%> (ø)
.../frameworks/constraint/pkg/client/crds/validate.go 85.71% <0.00%> (ø)
...works/constraint/pkg/client/drivers/local/local.go 64.66% <0.00%> (ø)
...gent/frameworks/constraint/pkg/client/error_map.go

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5d06ded...9b38a81. Read the comment docs.

Signed-off-by: davis-haba <davishaba@google.com>
Signed-off-by: davis-haba <davishaba@google.com>
Signed-off-by: davis-haba <davishaba@google.com>
Signed-off-by: davis-haba <davishaba@google.com>
Signed-off-by: davis-haba <davishaba@google.com>
Signed-off-by: davis-haba <davishaba@google.com>
 into add-handlers-to-driver

Signed-off-by: davis-haba <davishaba@google.com>
Signed-off-by: davis-haba <davishaba@google.com>
…st.go

Signed-off-by: davis-haba <davishaba@google.com>
Copy link
Member

@willbeason willbeason left a comment

Choose a reason for hiding this comment

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

Just minor changes, otherwise LGTM

constraint/pkg/client/client.go Outdated Show resolved Hide resolved
constraint/pkg/client/drivers/local/local_unit_test.go Outdated Show resolved Hide resolved
constraint/pkg/client/crds/validate.go Outdated Show resolved Hide resolved
Signed-off-by: davis-haba <davishaba@google.com>
Signed-off-by: davis-haba <davishaba@google.com>
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 after lint error fixes

@willbeason
Copy link
Member

You should be able to fix the lint errors with golangci-lint run --fix

Signed-off-by: davis-haba <davishaba@google.com>
Signed-off-by: davis-haba <davishaba@google.com>
Copy link
Member

@ritazh ritazh left a comment

Choose a reason for hiding this comment

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

lgtm

@willbeason willbeason merged commit 52025b3 into open-policy-agent:master Jan 25, 2022
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.

None yet

5 participants