-
Notifications
You must be signed in to change notification settings - Fork 69
upgrade operator-sdk and kubebuilder for openshift 4.17 #1160
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 operator-sdk and kubebuilder for openshift 4.17 #1160
Conversation
make/run-cicd-script.mk
Outdated
@@ -1,4 +1,4 @@ | |||
OWNER_AND_BRANCH_LOCATION=codeready-toolchain/toolchain-cicd/master | |||
OWNER_AND_BRANCH_LOCATION=rsoaresd/toolchain-cicd/openshift_4_17_cicd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
temporary until codeready-toolchain/toolchain-cicd#136 is merged / ensure that nothing breaks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM and I trust you not to forget about updating the reference to your own fork of toolchain-cicd
😃
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a flaky unit test case, i did come across this in one of my PRs.
FAIL: TestUserSignupWithAutoApprovalWithoutTargetCluster (0.01s) counter.go:140: toolchainStatus members: [{http://api.devcluster.openshift.com/ member1 0 {<nil> <nil> <nil> <nil> [] {map[master:65 worker:68]} <nil>}}] counter.go:140: toolchainStatus members: [] metric.go:40: Error Trace: /home/runner/go/pkg/mod/github.com/codeready-toolchain/toolchain-common@v0.0.0-20250313203311-0bce6563576f/pkg/test/metrics/metric.go:40 /home/runner/work/host-operator/host-operator/controllers/usersignup/usersignup_controller_test.go:559 Error: Not equal: expected: 0x1 actual : 0x0 Test: TestUserSignupWithAutoApprovalWithoutTargetCluster
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alexeykazakov, fbm3307, metlos, mfrancisc, rsoaresd The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@fbm3307 I did not see that flaky test in this pr. Can you point me to the job pls? |
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1160 +/- ##
==========================================
+ Coverage 79.71% 83.73% +4.01%
==========================================
Files 83 82 -1
Lines 8333 7933 -400
==========================================
Hits 6643 6643
+ Misses 1493 1093 -400
Partials 197 197 🚀 New features to boost your workflow:
|
Description
We already did the first phase of PRs to upgrade the dependencies for openshift 4.17. Now the second phase is to actually upgrade operator-sdk and kubebuilder. The following docs were followed:
https://sdk.operatorframework.io/docs/upgrading-sdk-version/v1.38.0/
comment-spacings
in revive because it would hit a lot of issues due to//+kubebuilder
https://book.kubebuilder.io/migration/manually_migration_guide_gov3_to_gov4
main.go
was moved forcmd/main.go
due to following best practices, other structure changes will be consider in the futureRelated PRs:
Issue ticket number and link
SANDBOX-808