Skip to content

generate: subcommands should only require pkg/apis exist, not full project #1804

@estroz

Description

@estroz

Feature Request

Is your feature request related to a problem? Please describe.
I want to run operator-sdk generate subcommands on pkg/apis on a project without cmd/manager/main.go or build/Dockerfile. Neither of these are required to generate code for my APIs in any case.

Describe the solution you'd like
Remove project structure checks, and instead ensure pkg/apis exists instead, which should only exist in Go projects.

/cc @joelanford @hasbro17 @theishshah @fabianvf @jmrodri

Metadata

Metadata

Labels

kind/featureCategorizes issue or PR as related to a new feature.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions