Merge pull request #2520 from pikasTech/fix/1710-nc01-memory-free-4g
缩短 AgentRun PVC 全选确认路径
This commit is contained in:
@@ -90,7 +90,20 @@ for (const pvc of pvcData.items || []) {
|
||||
}
|
||||
}
|
||||
|
||||
const sizeScan = duBytesByPath(candidateFacts.map((item) => item.hostPath));
|
||||
const selectsAllCandidates = candidateFacts.length <= limit;
|
||||
const sizeScan = confirm && selectsAllCandidates
|
||||
? {
|
||||
sizes: new Map(),
|
||||
summary: {
|
||||
requested: candidateFacts.length,
|
||||
measured: 0,
|
||||
timedOut: false,
|
||||
status: null,
|
||||
skipped: true,
|
||||
reason: "confirmed-run-selects-all-candidates",
|
||||
},
|
||||
}
|
||||
: duBytesByPath(candidateFacts.map((item) => item.hostPath));
|
||||
const candidates = candidateFacts.map(({ hostPath, ...item }) => ({
|
||||
...item,
|
||||
estimatedBytes: sizeScan.sizes.get(hostPath) ?? null,
|
||||
|
||||
Reference in New Issue
Block a user