Skip to content

Resource group in VPC v2 flow is not handled properly #2445

@Amulyam24

Description

@Amulyam24

/kind bug
/area provider/ibmcloud

When creating new resources using v2 flow, if resource group is not present in status, the value from spec.resourceGroup is used.

spec.resourceGroup represents a string which could either be ID or name(v1 flow expects an ID). However, when ID is provided, it would fail with

failed to create vpc: failed retreiving resource group id during vpc creation: failed to retrieve resource group by name: failed to find Resource Group

With the v2 flow, we should either document the usage of name vs ID when using spec.resourcGroup or use the value when spec.Newtwork.ResourceGroup is provided.

It might be better to simplify the resource group by placing it in the spec and consuming the value accordingly for different flows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/provider/ibmcloudIssues or PRs related to ibmcloud providerkind/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