fix: Update project available quota when editing project quota
Created by: weili520
What type of PR is this?
/kind bug
What this PR does / why we need it:
At before,the available quota is the workspace lefted quota, it is Incorrect,the project available quota should be the sum of workspace lefted quota and project used.
Which issue(s) this PR fixes:
Fixes #
Special notes for reviewers:
the workspace in shire cluster total quota is: limits.cpu: 2 Core limits.memory: 6G
the lcj-test-shire namespace total quota is: limits.cpu: 1 Core limits.memory: 2G
the workload that we created quota is: limits.cpu: 0.5 Core limits.memory: 1G
At before, if we create a workload as the video shown, the available quota as follows:
Does this PR introduced a user-facing change?
Project avaliable quota inccrect. It should be the sum of workspace remaining quota and project used quota.
Additional documentation, usage docs, etc.: