Skip to content

Resource references within a list of structs #1256

@RedbackThomson

Description

@RedbackThomson

Is your feature request related to a problem?
Some controllers have lists of structs which containing references to other resources. These are currently not supported within the resource reference generator, nor are they supported by the runtime resource reconciler.

For example, the EC2 controller contains a list of Routes within the RouteTable CRD. Each of these is taken from the CreateRouteInput struct. These contain fields like NatGatewayId which would be used to reference an ACK NATGateway resource. There may be other examples of this happening natively (not within a custom field), but I haven't stumbled across any lately.

Describe the solution you'd like
I should be able to specify a nested field path that points to a field within a struct that's an element of a slice, where the generator should properly transform this into a resource reference field. The runtime reconciler should be able to find these references and resolve them accordingly.

Metadata

Metadata

Labels

kind/enhancementCategorizes issue or PR as related to existing feature enhancements.

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions