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

chore: upgraded to controller-runtime 0.17.2 and ginkgo v2 #319

Merged
merged 3 commits into from
May 31, 2024

Conversation

ccpeng
Copy link
Contributor

@ccpeng ccpeng commented May 28, 2024

closed #276

  • updated Makefile to follow KubeBuilder V3
  • updated client-go 0.25.16 -> 0.29.0
  • updated controller-runtime 0.13.1 -> 0.17.2
  • switched to ginkgo v2

note: starting controller-runtime v0.15, fake client status update works differently
https://github.com/kubernetes-sigs/controller-runtime/releases/tag/v0.15.0

  • updated a couple of tests to reflect the change

Copy link

codecov bot commented May 29, 2024

Codecov Report

Attention: Patch coverage is 22.22222% with 7 lines in your changes are missing coverage. Please review.

Project coverage is 57.10%. Comparing base (c641c3d) to head (fed363d).
Report is 4 commits behind head on master.

Files Patch % Lines
controllers/addon_controller.go 12.50% 0 Missing and 7 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #319      +/-   ##
==========================================
+ Coverage   55.81%   57.10%   +1.28%     
==========================================
  Files          14       14              
  Lines        1933     1485     -448     
==========================================
- Hits         1079      848     -231     
+ Misses        734      517     -217     
  Partials      120      120              

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

Signed-off-by: Chun-Che Peng <[email protected]>
@ccpeng ccpeng changed the title initial work to be kubebuilder v3 compliant chore: upgraded to controller-runtime 0.17.2 and ginkgo v2 May 29, 2024
@ccpeng ccpeng marked this pull request as ready for review May 29, 2024 16:47
@ccpeng ccpeng requested review from a team as code owners May 29, 2024 16:47
@@ -52,18 +52,6 @@ const (
controllerName = "addon-manager-controller"
)

// Watched resources
var (
Copy link
Contributor Author

Choose a reason for hiding this comment

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

resources was unused

RunSpecsWithDefaultAndCustomReporters(t,
"v1alpha1 Suite",
[]Reporter{printer.NewlineReporter{}})
RunSpecs(t, "v1alpha1 Suite")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does this automatically print the logs as we expect?

RunSpecsWithDefaultAndCustomReporters(t,
"Controller Suite",
[]Reporter{printer.NewlineReporter{}})
RunSpecs(t, "Controller Suite")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same as above, do RunSpecs without further args print logs during test?

Copy link
Collaborator

@kevdowney kevdowney left a comment

Choose a reason for hiding this comment

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

LGTM

@ccpeng ccpeng merged commit 8c943bb into keikoproj:master May 31, 2024
6 of 7 checks passed
@ccpeng ccpeng deleted the kubebuilder-v3-compliant branch May 31, 2024 19:20
@ccpeng ccpeng mentioned this pull request Jun 11, 2024
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.

migrate addon-manager tests to use Ginkgo v2
2 participants