FlexibleEngineCloud / provider-flexibleengine

Crossplane provider that exposes XRM-conformant managed resources for the FlexibleEngine API.
Apache License 2.0
10 stars 2 forks source link

[dedicatedlb] member, subnet_id reference #145

Closed gaetanars closed 1 year ago

gaetanars commented 1 year ago

https://github.com/FrangipaneTeam/provider-flexibleengine/blob/0d6f721cf3784b2482d1e82b5847ceb6983976d8/apis/dedicatedelb/v1beta1/zz_member_types.go#L56-L66

For flexibleengine_lb_member_v3, subnet_id can be ipv4_subnet_id OR ipv6_subnet_id

gaetanars commented 1 year ago

https://github.com/FrangipaneTeam/provider-flexibleengine/blob/0d6f721cf3784b2482d1e82b5847ceb6983976d8/config/external_name.go#L397-L407

We must validate that we can get ipv6_subnet_id as ExternalName in case of ipv6 subnet, and we must reference vpc_subnet ExternalName when we must provide a subnet ID.

gaetanars commented 1 year ago
All resources that reference an ipv4_subnet_id OR ipv6_subnet_id : Resource Argument
lb_loadbalancer_v2 vip_subnet_id
lb_member_v2 subnet_id
lb_member_v3 subnet_id
networking_port_v2 fixed_ip.subnet_id
sdrs_protectedinstance_v1 primary_subnet_id