-
Notifications
You must be signed in to change notification settings - Fork 1.8k
cmd/.../scorecard: move scorecard libraries out of cmd #1272
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
cmd/.../scorecard: move scorecard libraries out of cmd #1272
Conversation
estroz
left a comment
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
after addressing other comments.
|
New changes are detected. LGTM label has been removed. |
We can use viper directly now, so we can ignore the return values for cobra flags
|
/cc @joelanford @lilic PTAL |
|
@AlexNPavel: GitHub didn't allow me to request PR reviews from the following users: PTAL. Note that only operator-framework members and repo collaborators can review this PR, and authors cannot review their own PRs. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
lilic
left a comment
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
|
I'm wondering if we should move With Thoughts? |
|
I think it would be fine to keep those internal for now and expose them later if we feel that it's necessary |
|
I've moved the /cc @joelanford |
joelanford
left a comment
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
Description of the change: This PR moves most of the files/functions from
cmd/operator-sdk/scorecardintointernal/pkg/scorecard, moves the individual test definitions fromtest_definitions.gointo the thebasic_tests.goandolm_tests.gofiles, and exposes the struct definitions intest_definitions.gothroughpkg/scorecard/lib.Motivation for the change: The scorecard shouldn't be sitting entirely in the
cmddirectory, especially for certain struct definitions that other developers may want to use when developing scorecard plugins. This also makes simplifies some of the future implementation work needed for the scorecard plugin system defined in doc/proposals/scorecard-plugin-system.md.