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

FATA[0005] failed to initialize project with version "2" #3690

Closed
camilamacedo86 opened this issue Aug 7, 2020 · 3 comments
Closed

FATA[0005] failed to initialize project with version "2" #3690

camilamacedo86 opened this issue Aug 7, 2020 · 3 comments
Milestone

Comments

@camilamacedo86
Copy link
Contributor

Bug Report

What did you do?
operator-sdk init --project-version=2 --domain example.org --license apache2 --owner "The Kubernetes authors"

What did you expect to see?
project scaffolded since has the option

What did you see instead? Under which circumstances?

$ operator-sdk init --project-version=2 --domain example.org --license apache2 --owner "The Kubernetes authors"
Writing scaffold for you to edit...
Get controller runtime:
$ go get sigs.k8s.io/controller-runtime@v0.6.2
Update go.mod:
$ go mod tidy
Running make:
$ make
/Users/camilamacedo/go/bin/controller-gen object:headerFile="hack/boilerplate.go.txt" paths="./..."
go fmt ./...
go vet ./...
go build -o bin/manager main.go
Next: define a resource with:
$ operator-sdk create api
Error: failed to initialize project with version "2": error updating Makefile: unsupported plugin key ""
Usage:
  operator-sdk init [flags]

Examples:
  # Scaffold a project using the apache2 license with "The Kubernetes authors" as owners
  operator-sdk init --project-version=2 --domain example.org --license apache2 --owner "The Kubernetes authors"


Flags:
      --domain string            domain for groups (default "my.domain")
      --fetch-deps               ensure dependencies are downloaded (default true)
  -h, --help                     help for init
      --license string           license to use to boilerplate, may be one of 'apache2', 'none' (default "apache2")
      --owner string             owner to add to the copyright
      --plugins strings          Name and optionally version of the plugin to initialize the project with. Available plugins: ("ansible.sdk.operatorframework.io/v1", "go.kubebuilder.io/v2", "helm.sdk.operatorframework.io/v1")
      --project-version string   project version, possible values: ("2", "3-alpha") (default "3-alpha")
      --repo string              name to use for go module (e.g., github.com/user/repo), defaults to the go package of the current working directory.
      --skip-go-version-check    if specified, skip checking the Go version

Global Flags:
      --verbose   Enable verbose logging

FATA[0006] failed to initialize project with version "2": error updating Makefile: unsupported plugin key "" 

Environment

  • operator-sdk version: 4739c1f
  • go version: go1.13.12
@camilamacedo86 camilamacedo86 added this to the v1.0.0 milestone Aug 7, 2020
@joelanford
Copy link
Member

Since this is an issue in the init command that results in an immediate failure, I think we could consider the fix for this (whatever it is) a non-breaking bug fix.

@estroz
Copy link
Member

estroz commented Aug 8, 2020

Closed by #3697

@estroz estroz closed this as completed Aug 8, 2020
@camilamacedo86 camilamacedo86 reopened this Aug 8, 2020
@camilamacedo86
Copy link
Contributor Author

camilamacedo86 commented Aug 8, 2020

Hi @estroz,

Should we not address it to 0.19.X as well? Raised #3702 for we do not forget that.

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

3 participants