-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
cmd/operator-sdk/add/controller.go: support built-in k8s API controllers #1344
cmd/operator-sdk/add/controller.go: support built-in k8s API controllers #1344
Conversation
built-in Kubernetes API controllers internal/pkg/scaffold/controller_kind*.go: set imports at runtime as to respect a Kubernetes API controller import
and optionally an import identifier for an expernal k8s API internal/pkg/scaffold/controller_kind*.go: parse and set K8sImport in template
e974c1a
to
ff140ab
Compare
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.
Few nits, haven't had a chance to test this yet.
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.
A couple of nits. Otherwise LGTM
Co-Authored-By: Joe Lanford <joe.lanford@gmail.com>
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 after rebase :)
Description of the change:
cmd/operator-sdk/add/controller.go
: --k8s-api-import for scaffolding built-in and external Kubernetes API controllersinternal/pkg/scaffold/controller_kind*.go
: set imports at runtime as to respect an API importMotivation for the change: See #928 and #1343
Closes #1343