Skip to content

Wrong generated class name #72

@metacosm

Description

@metacosm

Bug Report

What did you do?

create api generates a wrongly named Java class. The generated class name is still {{.ClassName}}Controller while the code has been changed to name the class {{.ClassName}}Reconciler.

What did you expect to see?

Generated code should compile.

What did you see instead? Under which circumstances?

Generated code doesn't compile because you must define a Java class in a file named after the class that it encloses.

Environment

Operator type:

Kubernetes cluster type:

$ operator-sdk version

$ java -version (if language is Java)

$ kubectl version

Possible Solution

Additional context

Metadata

Metadata

Assignees

Labels

bugzilla/severity-highReferenced Bugzilla bug's severity is high for the branch this PR is targeting.kind/bugCategorizes issue or PR as related to a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions