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

Bump kubebuilder version & add to tool-versions #381

Open
2 tasks
aidandunlop opened this issue Oct 24, 2024 · 2 comments
Open
2 tasks

Bump kubebuilder version & add to tool-versions #381

aidandunlop opened this issue Oct 24, 2024 · 2 comments

Comments

@aidandunlop
Copy link
Contributor

Is your feature request related to a problem? Please describe.
KFP Operator was built with an old version of kubebuilder, and later versions of the kubebuilder CLI fail to recognise the project:

$ kubebuilder 
Error: no plugin could be resolved with key "go.kubebuilder.io/v3" for project version "3"
Usage:
  kubebuilder [flags]

Examples:
The first step is to initialize your project:
    kubebuilder init [--plugins=<PLUGIN KEYS> [--project-version=<PROJECT VERSION>]]

<PLUGIN KEYS> is a comma-separated list of plugin keys from the following table
and <PROJECT VERSION> a supported project version for these plugins.

                             Plugin keys | Supported project versions
-----------------------------------------+----------------------------
               base.go.kubebuilder.io/v4 |                          3
 deploy-image.go.kubebuilder.io/v1-alpha |                          3
                    go.kubebuilder.io/v4 |                          3
         grafana.kubebuilder.io/v1-alpha |                          3
      kustomize.common.kubebuilder.io/v2 |                          3

For more specific help for the init command of a certain plugins and project version
configuration please run:
    kubebuilder init --help --plugins=<PLUGIN KEYS> [--project-version=<PROJECT VERSION>]

Default plugin keys: "go.kubebuilder.io/v4"
Default project version: "3"


Flags:
  -h, --help                     help for kubebuilder
      --plugins strings          plugin keys to be used for this subcommand execution
      --project-version string   project version (default "3")

FATA no plugin could be resolved with key "go.kubebuilder.io/v3" for project version "3" 

It appears version 4 of kubebuilder expects a different directory structure.

Describe the solution you'd like

  • Upgrade the version of kubebuilder used (specified in the root-level PROJECT file)
  • Support latest version of the kubebuilder cli

Describe alternatives you've considered

  • Downgrading to a lower version of kubebuilder cli
@chr12c
Copy link
Contributor

chr12c commented Dec 12, 2024

no plugin could be resolved with key "go.kubebuilder.io/v3" for project version "3"

You need to update the layout to go.kubebuilder.io/v4 the project version stays as 3

@chr12c
Copy link
Contributor

chr12c commented Dec 12, 2024

the alpha plugin didn't work unfortunately.

kubebuilder alpha generate --plugins=go/v4

Looks like we will have to manually go through all of the breaking changes from 3.x to 4.x of kubebuilder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants