You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Resolves#4066 ([FR-1328](https://lablup.atlassian.net/browse/FR-1328))
# Limit Unique Resource Type Allocation to Maximum of 1
This PR adds a constraint for unique resource types (like TPU) to limit their allocation to a maximum of 1 unit. The implementation:
1. Uses the `useResourceSlots` hook to identify unique resource types
2. Adds validation logic to prevent allocating more than 1 unit of a unique resource type
3. Limits the slider and input controls to a maximum value of 1 for unique resource types
4. Adds appropriate error messages in all supported languages
5. Fixes the CPU utilization display in the Agent Detail Modal by moving the conditional rendering to the correct position

**Checklist:**
- [x] Documentation
- [ ] Minium required manager version
- [x] Specific setting for review (eg., KB link, endpoint or how to setup): 10.122.12.117
- [ ] Minimum requirements to check during review
- [ ] Test case(s) to demonstrate the difference of before/after
[FR-1328]: https://lablup.atlassian.net/browse/FR-1328?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
0 commit comments