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 0.7.0 #18

Conversation

stijndehaes
Copy link
Contributor

@stijndehaes stijndehaes commented Jan 12, 2021

I have upgraded this to controller runtime 0.7.0, I already provided the PR for feedback. Tests run succesful, but I still want to test the code in a pod on a cluster. Will update my comment when I have done this.

Ok I have it working on a cluster, also noticed it might be interesting to migrate to code to use v1 of admissionregistration.k8s.io. If you guys are interested I'll do this in a next PR

@stijndehaes stijndehaes force-pushed the feature/upgrade-controller-runtime-0-7-0 branch from 714ec89 to 35def43 Compare January 12, 2021 12:17
@ritazh
Copy link
Member

ritazh commented Jan 13, 2021

/hold

Per community call discussion, this may need to wait a little bit depending on when controller-runtime upgrade work is done in Gatekeeper to minimize conflicts.

@stijndehaes
Copy link
Contributor Author

@ritazh I understand, I can use my version of the code in the mean time so I am not in a hurry to get this merged :) I'll keep it up to date with master every once in a while

@adrianludwin
Copy link
Contributor

We're trying to upgrade HNC to controller-runtime v0.7.0 too, but we're blocked on this PR going in. @ritazh , would you mind if we merged this change? As long as Gatekeeper is importing cert-controller at a pinned verion, it shouldn't affect your builds until you explicitly upgrade to the latest version, right?

Signed-off-by: Stijn De Haes <stijndehaes@gmail.com>
@stijndehaes stijndehaes force-pushed the feature/upgrade-controller-runtime-0-7-0 branch from 35def43 to e0beabd Compare January 14, 2021 14:55
@adrianludwin
Copy link
Contributor

I've imported the latest version of @stijndehaes 's change into HNC as a part of also upgrading HNC to controller-runtime v0.7.0, and everything appears to be working (our basic tests have passed; the rest of the suite is still running). I'll update this if there are any problems but at this point I'm fairly confident that the change is good.

Thanks!

@sozercan
Copy link
Member

sozercan commented Jan 21, 2021

We can unhold this now. open-policy-agent/gatekeeper#1073 is out for upgrading CR to v0.7.0 in Gatekeeper

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, waiting for LGTM from @ritazh or @sozercan before merging.

pkg/rotator/rotator.go Outdated Show resolved Hide resolved
pkg/rotator/rotator_suite_test.go Outdated Show resolved Hide resolved
pkg/rotator/rotator_test.go Outdated Show resolved Hide resolved
stijndehaes and others added 3 commits January 22, 2021 08:13
Signed-off-by: Stijn De Haes <stijndehaes@gmail.com>
Signed-off-by: Stijn De Haes <stijndehaes@gmail.com>
Signed-off-by: Stijn De Haes <stijndehaes@gmail.com>
@codecov-io
Copy link

Codecov Report

Merging #18 (a8a2526) into master (69850e5) will increase coverage by 0.42%.
The diff coverage is 45.45%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #18      +/-   ##
==========================================
+ Coverage   51.44%   51.87%   +0.42%     
==========================================
  Files           1        1              
  Lines         381      374       -7     
==========================================
- Hits          196      194       -2     
+ Misses        129      124       -5     
  Partials       56       56              
Flag Coverage Δ
unittests 51.87% <45.45%> (+0.42%) ⬆️

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

Impacted Files Coverage Δ
pkg/rotator/rotator.go 51.87% <45.45%> (+0.42%) ⬆️

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 69850e5...a8a2526. Read the comment docs.

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

@maxsmythe
Copy link
Contributor

@shomron LGTY?

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.

🚀

@shomron shomron merged commit 6ff9721 into open-policy-agent:master Jan 29, 2021
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

7 participants