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

Upgrade to controller-runtime v0.7.0 #1073

Merged
merged 13 commits into from
Jan 29, 2021
Merged

Conversation

sozercan
Copy link
Member

@sozercan sozercan commented Jan 20, 2021

Signed-off-by: Sertac Ozercan sozercan@gmail.com

What this PR does / why we need it:
Upgrades controller-runtime to v0.7.0 - https://github.com/kubernetes-sigs/controller-runtime/releases/tag/v0.7.0

Required PRs:
open-policy-agent/cert-controller#18
open-policy-agent/frameworks#106

Which issue(s) this PR fixes (optional, using fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when the PR gets merged):
Fixes #

Special notes for your reviewer:

Signed-off-by: Sertac Ozercan <sozercan@gmail.com>
@codecov-io
Copy link

codecov-io commented Jan 20, 2021

Codecov Report

Merging #1073 (442ce99) into master (be2f5b4) will increase coverage by 0.04%.
The diff coverage is 41.07%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1073      +/-   ##
==========================================
+ Coverage   48.08%   48.12%   +0.04%     
==========================================
  Files          62       62              
  Lines        4274     4264      -10     
==========================================
- Hits         2055     2052       -3     
+ Misses       1964     1959       -5     
+ Partials      255      253       -2     
Flag Coverage Δ
unittests 48.12% <41.07%> (+0.04%) ⬆️

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

Impacted Files Coverage Δ
pkg/audit/manager.go 0.00% <0.00%> (ø)
pkg/controller/constraint/constraint_controller.go 4.22% <0.00%> (-0.02%) ⬇️
pkg/controller/sync/sync_controller.go 0.00% <0.00%> (ø)
pkg/metrics/exporter.go 0.00% <0.00%> (ø)
pkg/readiness/ready_tracker.go 69.09% <ø> (-0.73%) ⬇️
pkg/util/pack.go 0.00% <0.00%> (ø)
pkg/watch/replay.go 71.08% <ø> (+0.96%) ⬆️
pkg/webhook/mutation.go 12.68% <0.00%> (ø)
pkg/webhook/policy.go 27.31% <0.00%> (ø)
pkg/target/target.go 66.03% <25.00%> (ø)
... and 11 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 df6c9b4...442ce99. Read the comment docs.

go.mod Outdated Show resolved Hide resolved
Signed-off-by: Sertac Ozercan <sozercan@gmail.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.

This generally LGTM.

There is the outstanding question about the retry delay and I defer to Oren for debugging the informer cache changes. Unless he has already weighed in through pair programming or similar?

@shomron
Copy link
Contributor

shomron commented Jan 21, 2021

Thanks @sozercan, @maxsmythe! I'm reviewing this PR today.

Copy link
Contributor

@shomron shomron left a comment

Choose a reason for hiding this comment

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

@sozercan thanks for taking on this huge upgrade!

I'm posting review comments with as far as I've gotten so you can see them in the meantime. My next review task is just the rebasing of the dynamicCache.

pkg/audit/manager.go Outdated Show resolved Hide resolved
pkg/controller/assign/assign_controller.go Outdated Show resolved Hide resolved
pkg/controller/config/config_controller_test.go Outdated Show resolved Hide resolved
pkg/controller/constraint/constraint_controller.go Outdated Show resolved Hide resolved
pkg/readiness/setup.go Outdated Show resolved Hide resolved
pkg/upgrade/manager.go Outdated Show resolved Hide resolved
pkg/watch/manager.go Outdated Show resolved Hide resolved
test/clients/retry_client.go Outdated Show resolved Hide resolved
@shomron
Copy link
Contributor

shomron commented Jan 21, 2021

nit: looks like the comment in pkg/dynamiccache/doc.go still refers to the 0.6.0 branch.

@shomron
Copy link
Contributor

shomron commented Jan 21, 2021

@sozercan done reviewing - there are a few small blockers to address but overall you did a fantastic job on this!

Signed-off-by: Sertac Ozercan <sozercan@gmail.com>
Signed-off-by: Sertac Ozercan <sozercan@gmail.com>
Signed-off-by: Sertac Ozercan <sozercan@gmail.com>
Signed-off-by: Sertac Ozercan <sozercan@gmail.com>
Signed-off-by: Sertac Ozercan <sozercan@gmail.com>
Signed-off-by: Sertac Ozercan <sozercan@gmail.com>
Copy link
Contributor

@shomron shomron left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

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

Signed-off-by: Sertac Ozercan <sozercan@gmail.com>
Signed-off-by: Sertac Ozercan <sozercan@gmail.com>
@sozercan sozercan merged commit db5a580 into open-policy-agent:master Jan 29, 2021
@sozercan sozercan deleted the cr-070 branch January 29, 2021 20:03
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