Skip to content

Requirement for the code to compile necessitates manual intervention during codegen #46

@muvaf

Description

@muvaf

What problem are you facing?

When you use a custom resource type in a file under apis/group/version to do the following:

func (mg xpresource.Managed) {
cr, ok := mg.(*Cluster)
}

It expects that *Cluster satisfies xpresoruce.Managed interface but in order to do that angryjet needs to work to generate those functions. To get out of the chicken-egg problem, we end up commenting out the code, run agryjet, and enable it again.

How could Crossplane help solve your problem?

If it's possible, we could disable the expectation that the package should be compile-able. One option could be to give individual files, maybe?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions