# Scale Resources in Argo CD UI

This enables users to scale resources directly from the Argo CD UI. Users will be able to increase or decrease the number of replicas (Pods) for Deployments and StatefulSets by using an input field. The feature aims to enhance user experience, especially for non-technical users, by eliminating the need to modify configuration files or use kubectl commands for scaling.

## Example Usage
1. User navigates to a Deployment or StatefulSet in any Argo CD application.
2. User clicks on the Actions dropdown and selects "Scale".
  ![action button for scaling](../assets/scale_resources_1.png)
3. A modal pops up showing an input field `Enter input parameters for action: scale` with the current number of Pods.
4. User adjusts the number of Pods by entering a number.
  ![input field for scaling](../assets/scale_resources_2.png)
5. User presses OK, and the resource is scaled accordingly.
  ![result for scaling](../assets/scale_resources_3.png)

!!! note
    This feature will only apply to `Deployments`, and `StatefulSets`.

!!! note
    If you use HPA (Horizontal Pod Autoscaling) or enabled Argo CD auto-sync, changing the replica count in scale actions would be overwritten.
    Ensure that invalid values (e.g., `non-numeric` characters, `negative` numbers, or values beyond the `max integer limit`) cannot be entered.
