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

build: Update Gatekeeper with frameworks interface changes #1845

Merged
merged 8 commits into from Feb 15, 2022

Conversation

willbeason
Copy link
Member

Also, enforce using a consistent import for the frameworks Client
package. This ensures automated changes are easier, and ensures the
Client type is referenced consistently throughout the code (instead of
being confused with the k8s API client.

Signed-off-by: Will Beason willbeason@google.com

Also, enforce using a consistent import for the frameworks Client
package. This ensures automated changes are easier, and ensures the
Client type is referenced consistently throughout the code (instead of
being confused with the k8s API client.

Signed-off-by: Will Beason <willbeason@google.com>
@willbeason willbeason changed the title Update Gatekeeper with frameworks interface changes build: Update Gatekeeper with frameworks interface changes Feb 11, 2022
@willbeason
Copy link
Member Author

The big thing here is that the Client is easier to instantiate, so all of the places we do this are now smaller.

@maxsmythe
Copy link
Contributor

maxsmythe commented Feb 12, 2022

It looks like this is failing due to lint errors from a linter added by this PR?

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 fix

@sozercan
Copy link
Member

Looks like there's a diff in go mod

Will Beason added 2 commits February 14, 2022 07:53
Signed-off-by: Will Beason <willbeason@google.com>
Will Beason added 3 commits February 14, 2022 08:20
Signed-off-by: Will Beason <willbeason@google.com>
Signed-off-by: Will Beason <willbeason@google.com>
Signed-off-by: Will Beason <willbeason@google.com>
@willbeason
Copy link
Member Author

@sozercan Fixed

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.

LGTM

@codecov-commenter
Copy link

codecov-commenter commented Feb 14, 2022

Codecov Report

Merging #1845 (148d3d6) into master (fc734da) will increase coverage by 0.09%.
The diff coverage is 26.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1845      +/-   ##
==========================================
+ Coverage   52.12%   52.21%   +0.09%     
==========================================
  Files         100      100              
  Lines        8956     8952       -4     
==========================================
+ Hits         4668     4674       +6     
+ Misses       3911     3903       -8     
+ Partials      377      375       -2     
Flag Coverage Δ
unittests 52.21% <26.66%> (+0.09%) ⬆️

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

Impacted Files Coverage Δ
pkg/audit/controller.go 0.00% <0.00%> (ø)
pkg/audit/manager.go 0.00% <0.00%> (ø)
pkg/controller/config/config_controller.go 65.04% <0.00%> (ø)
pkg/controller/constraint/constraint_controller.go 5.66% <0.00%> (ø)
...platestatus/constrainttemplatestatus_controller.go 69.02% <ø> (ø)
pkg/webhook/mutation.go 21.98% <0.00%> (ø)
pkg/webhook/namespacelabel.go 66.66% <0.00%> (ø)
pkg/webhook/webhook.go 0.00% <0.00%> (ø)
...onstrainttemplate/constrainttemplate_controller.go 58.65% <50.00%> (+2.16%) ⬆️
...controller/externaldata/externaldata_controller.go 57.37% <50.00%> (ø)
... and 6 more

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 86c2dfe...148d3d6. Read the comment docs.

@willbeason willbeason merged commit 653a4a7 into open-policy-agent:master Feb 15, 2022
@willbeason willbeason deleted the update-frameworks branch February 15, 2022 15:54
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

4 participants