Skip to content

Allow SetResourceForStruct to be called for non top-level CRD fields #1609

@a-hilaly

Description

@a-hilaly

Currently we are unable to use GoCodeSetResourceForStruct for fields that are not top-level CRD fields, which causes issues when trying to generate custom code that transforms an eventbridge v1alpha1.Target to an svcsdk.Target.

Ideally we should allow users to call GoCodeSetResourceForStruct for any field, not just CRD top level fields. This will fix the issue and allow users to generate custom code for fields that are not part of a CRD spec or status.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/code-generationIssues or PRs as related to controllers or docs code generationkind/enhancementCategorizes issue or PR as related to existing feature enhancements.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions