-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
*: remove plugin minor/patch versions #1547
*: remove plugin minor/patch versions #1547
Conversation
While this gets reviewed/discussed /hold |
c3fb531
to
8fa596c
Compare
/test pull-kubebuilder-test |
8fa596c
to
1b4942a
Compare
Ready for review. It looks like there are a bunch of changes here, but most of them are removal of minor+patch version from comments/strings and centralizing plugin-related code where appropriate. /hold cancel |
@@ -36,12 +36,13 @@ func TestCLI(t *testing.T) { | |||
|
|||
// Test plugin types and constructors. | |||
type mockPlugin struct { | |||
name, version string | |||
name string | |||
version plugin.Version | |||
projectVersions []string |
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.
I think it is now beyond what we need. but I am ok with 👍
1b4942a
to
e689089
Compare
e689089
to
7186525
Compare
…refix and stability "alpha" or "beta" suffix, ex. "v2-alpha". Minor and patch version changes are poorly defined and may constitute breaking changes; having a single version number makes versioning simpler and permits breaking changes to be grouped into one "major" release for a plugin. *: remove references to minor and patch versions for plugins pkg/plugin: implement a Version type returned by Base.Version() that is easily parsed and validated pkg/cli: simplify plugin resolver given the minor/patch number drop
7186525
to
4f890fc
Compare
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.
terrific work @estroz 🥇
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: camilamacedo86, estroz 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 |
Plugin versions are now considered single numbers with optional "v" prefix and stability "alpha" or "beta" suffix, ex. "v2-alpha". Minor and patch version changes are poorly defined and may constitute breaking changes; having a single version number makes versioning simpler and permits breaking changes to be grouped into one "major" release for a plugin. See #1519 for more details.
Version
type returned byBase.Version()
that is easily parsed and validatedNote: This change will affect project configs with
layout: go.kubebuilder.io/v2.0.0
, but because this value was not scaffolded by a released version of kubebuilder we shouldn't have to migrate anyone./cc @DirectXMan12 @joelanford @camilamacedo86