-
Notifications
You must be signed in to change notification settings - Fork 42
upgrade sdk and kubebuilder for openshift 4.17 #645
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 sdk and kubebuilder for openshift 4.17 #645
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
@@ -1,4 +1,5 @@ | |||
## Append samples you want in your CSV to this file as resources ## | |||
resources: | |||
- toolchain.dev.openshift.com_v1alpha1_useraccount.yaml |
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.
"dummy" file because without it was failing with:
Error: accumulating resources: accumulation err='accumulating resources from '../samples': '/Users/rsoaresd/member-operator/config/samples' must resolve to a file': couldn't make target for path '/Users/rsoaresd/member-operator/config/samples': kustomization.yaml is empty
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.
this /samples/ thing doesn't really applied anyway, right? IT's more for documentation purposes?
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.
Yes, they serve as "examples of Custom Resources that can be applied to the cluster"
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #645 +/- ##
==========================================
+ Coverage 76.02% 80.69% +4.66%
==========================================
Files 46 45 -1
Lines 4476 4217 -259
==========================================
Hits 3403 3403
+ Misses 923 664 -259
Partials 150 150 🚀 New features to boost your workflow:
|
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.
Looks good. Just don't forget to update OWNER_AND_BRANCH_LOCATION=rsoaresd/toolchain-cicd/openshift_4_17_cicd before merging! :)
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.
Looks good 👍 Thank you!
[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 |
/retest it seems flaky test
|
|
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