Uploaded image for project: 'Hybrid Application Console'
  1. Hybrid Application Console
  2. HAC-2982

[Hypershift ROSA][Details] Edit node count

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    • 3
    • False
    • False
    • None
    • HAC Infra OCM - Sprint 231, HAC Infra OCM - Sprint 232, HAC Infra OCM - Sprint 233

      User story:

      So that I have the right number of nodes, as a user, I can edit the node count of my hypershift control plane cluster.

      Acceptance criteria:

      • For a hypershift control plane cluster node (labeled in the UI as machine) pool, I can:
      • edit the node count
      • enable or disable autoscaling

      NOTE: There are three places in the UI where a user can activate the "edit node count" modal:

      • Cluster details/machine pools - kebab for every node pool
      • Cluster details - action menu at the top of the screen
      • Cluster list - kebab for each cluster.

      Mockups:

      PD 1464

      Modal:

      Cluster List

      Cluster Actions

      Machine pools

      -------------------------------------------------------------------------------------------------------------------------------

      Implementation details

      For hypershift control plane clusters, the endpoints should be the node pool endpoints vs the machine pool endpoints.

      When the modal is opened, the following api calls are made:
      GET `/api/accounts_mgmt/v1/organizations/<cluster_id>/quota_cost?fetchRelatedResources=true&fetchCloudAccounts=true`
      GET `/api/clusters_mgmt/v1/clusters/<cluster_id>/machine_pools`

      It is unknown what data from the quota_cost api is used and how it is used.

      When the "Apply" button is pressed, the following API call is made:
      PATCH`/api/clusters_mgmt/v1/clusters/<cluster_id>

      non autoscale body:
      {"nodes":{"compute":3}}

      autoscale body:
      {"nodes":{"autoscale_compute":

      {"min_replicas":2,"max_replicas":4}

      }}

      It is unknown if the payload body needs to change for hypershift.

        1. Screenshot 2023-01-19 at 4.35.05 PM.png
          101 kB
          Kim Doberstein
        2. Screenshot 2023-01-19 at 4.43.04 PM.png
          58 kB
          Kim Doberstein
        3. Screenshot 2023-01-19 at 6.06.08 PM.png
          34 kB
          Kim Doberstein
        4. Screenshot 2023-01-19 at 6.31.13 PM.png
          156 kB
          Kim Doberstein

              zherman Zac Herman
              kdoberst Kim Doberstein
              Archiver:
              rhn-support-sthamilt Stacey Hamilton
              Jayakrishnan Mekkattillam Jayakrishnan Mekkattillam

                Created:
                Updated:
                Resolved:
                Archived: