-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.
Description
Bug Report
What did you do?
A clear and concise description of the steps you took (or insert a code snippet).
here is the command I issued and corresponding error:
operator-sdk add controller --api-version=core/v1 --kind=Namespace
INFO[0000] Generating controller version core/v1 for kind Namespace.
Error: group cannot be empty
Usage:
operator-sdk add controller [flags]
Flags:
--api-version string Kubernetes APIVersion that has a format of $GROUP_NAME/$VERSION (e.g app.example.com/v1alpha1)
-h, --help help for controller
--kind string Kubernetes resource Kind name. (e.g AppService)
What did you expect to see?
A clear and concise description of what you expected to happen (or insert a code snippet).
controller correclty generated
What did you see instead? Under which circumstances?
A clear and concise description of what you expected to happen (or insert a code snippet).
see error above
Environment
- operator-sdk version:
operator-sdk --version
operator-sdk version v0.5.0+git
notice that this version is misleading. I am actually using the binary resulting from the compilation of the master branch.
Possible Solution
this worked:
operator-sdk add controller --api-version=core.com/v1 --kind=Namespace
INFO[0000] Generating controller version core.com/v1 for kind Namespace.
INFO[0000] Created pkg/controller/namespace/namespace_controller.go
INFO[0000] Created pkg/controller/add_namespace.go
INFO[0000] Controller generation complete.
I can fix the generated code manually.
Additional context
Add any other context about the problem here.
Metadata
Metadata
Assignees
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.