-
Story
-
Resolution: Unresolved
-
Undefined
-
None
-
None
-
Product / Portfolio Work
-
3
-
False
-
-
True
-
-
-
OCMUI Center Team Sprint 274, OCMUI Center Team Sprint 275, OCMUI Center Team Sprint 276, OCMUI Center Team Sprint 277
User story:
So that I don't accidentally re-use subnets, as a user, I want subnets that are already used by the cluster at the bottom of the list when creating a new machine pool for an existing HCP cluster
Acceptance criteria:
- Subnets that are not used by any machine pool in the cluster are at the top of the drop-down selection
- A "View Used Subnets" toggle button appears at the bottom of the dropdown when used subnets exist
- Clicking the toggle button shows/hides used subnets and changes the button text to "Hide Used Subnets" accordingly
- Subnets that are used by a machine pool(s) are at the bottom of the list
- Subnets that are already used by the cluster will have an "- Used" label indicating that they are in use
NOTE: This is just an ordering of the subnets, with no change to functionality.
-------------------------------------------------------------------------------------------------------------------------------
Implementation details
- There are a couple of ways that we can mark subnets that are already in use (see: https://www.patternfly.org/components/menus/menu). But first pass, let's add a text description of "This subnet is already used by the cluster"
Note that subnets that are already in use should be selectable (aka it is a valid option)