-
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 v1 version and only shows --plugins flag when the project version is != V2 #1763
Conversation
0a24a2e
to
69d2259
Compare
69d2259
to
e9a458e
Compare
@@ -46,7 +46,7 @@ func (c *cli) newInitCmd() *cobra.Command { | |||
cmd.Flags().String(projectVersionFlag, c.defaultProjectVersion, | |||
fmt.Sprintf("project version, possible values: (%s)", strings.Join(c.getAvailableProjectVersions(), ", "))) | |||
// The --plugins flag can only be called to init projects v2+. | |||
if c.projectVersion != config.Version1 { | |||
if c.projectVersion != config.Version2 { |
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 this is ok, since project version 2 isn't the default anymore and doesn't have the concept of plugins in its spec.
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
[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 |
/test pull-kubebuilder-e2e-k8s-1-17-0 |
So basically |
@Adirio yes. Project version 2 uses a plugin internally; from a user's perspective there is no plugin being used. |
Description
Motivation
#1636
Co-author @estroz