The GPU limit number is incorrect and GPU limit validate error
Created by: weili520
Describe the bug
If we set the GPU limit and other limit fields(eg: number of pods) for project setting at the same time, the GPU num that we can set for default container quotas will incorrect.
- The GPU limit validation num incorrect
the gpu available num is 10 in the available quota tip
The correct available num is 12 in the project settings, so I can set the GPU limit to 11 for the default resource quotas
Versions used(KubeSphere/Kubernetes) KubeSphere: V3.2.2-rc.3
Environment How many nodes and their hardware configuration:
3 masters: 8cpu/8g 3 nodes: 8cpu/16g
To Reproduce Steps to reproduce the behavior:
- Go to
a project
-->Project Settings
--->Project Quotas
- Click on
Edit Quotas
- Set
Number of pods
as 10, also set theGPU Limit
as 2, and confirm. - Go to
Basic Information
, and clickmanage
, then chooseEdit Default Container Quotas
- see the problem.
Expected behavior The GPU limit is 2 in the available quotas prompt.