Commit e2e0eb0
committed
Add scaling functionality for Machine Deployments
- Introduced ScaleButtons component to handle scaling up and down of machine deployments.
- Updated MachineDeploymentsTable to include available replicas and scale buttons.
- Implemented scaleHandler to process scaling requests via POST method.
- Added error handling for invalid requests in scaleHandler.
- Updated server routing to include the new scale endpoint.
Signed-off-by: Artiom Diomin <artiom@kubermatic.com>1 parent c906669 commit e2e0eb0
3 files changed
Lines changed: 323 additions & 85 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
118 | 141 | | |
119 | 142 | | |
120 | 143 | | |
| |||
124 | 147 | | |
125 | 148 | | |
126 | 149 | | |
| 150 | + | |
| 151 | + | |
127 | 152 | | |
128 | 153 | | |
129 | 154 | | |
| |||
138 | 163 | | |
139 | 164 | | |
140 | 165 | | |
141 | | - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
142 | 169 | | |
143 | 170 | | |
144 | 171 | | |
| |||
0 commit comments