Skip to content
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

Merged
merged 1 commit into from
Nov 3, 2020

Conversation

camilamacedo86
Copy link
Member

@camilamacedo86 camilamacedo86 commented Nov 1, 2020

Description

  • remove v1 version
  • shows plugins --flag only if Project Version is != V2

Motivation

#1636

Co-author @estroz

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 1, 2020
@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 1, 2020
@camilamacedo86 camilamacedo86 changed the title cleanup: remove v1 version cleanup: remove v1 version and only shows --plugins flag when the project version is != V2 Nov 1, 2020
@camilamacedo86 camilamacedo86 changed the title cleanup: remove v1 version and only shows --plugins flag when the project version is != V2 ✨ remove v1 version and only shows --plugins flag when the project version is != V2 Nov 1, 2020
@camilamacedo86 camilamacedo86 changed the title ✨ remove v1 version and only shows --plugins flag when the project version is != V2 🐛 remove v1 version and only shows --plugins flag when the project version is != V2 Nov 1, 2020
@camilamacedo86 camilamacedo86 requested review from estroz and removed request for Adirio November 1, 2020 15:47
@camilamacedo86 camilamacedo86 changed the title 🐛 remove v1 version and only shows --plugins flag when the project version is != V2 ✨ remove v1 version and only shows --plugins flag when the project version is != V2 Nov 1, 2020
internal/config/config.go Outdated Show resolved Hide resolved
pkg/cli/cli.go Outdated Show resolved Hide resolved
@@ -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 {
Copy link
Contributor

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.

Copy link
Contributor

@estroz estroz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 3, 2020
@k8s-ci-robot
Copy link
Contributor

[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:
  • OWNERS [camilamacedo86,estroz]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@camilamacedo86
Copy link
Member Author

/test pull-kubebuilder-e2e-k8s-1-17-0

@Adirio
Copy link
Contributor

Adirio commented Nov 3, 2020

So basically v2 is going to use the go.kubebuilder.io plugin but not really support plugins, and v3 and onwards will support plugins. Right?

@estroz
Copy link
Contributor

estroz commented Nov 3, 2020

@Adirio yes. Project version 2 uses a plugin internally; from a user's perspective there is no plugin being used.

@k8s-ci-robot k8s-ci-robot merged commit 0947ebb into kubernetes-sigs:master Nov 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants