mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 23:39:41 +02:00
refactor(containers): migrate resources tab to react [EE-5214] (#10355)
This commit is contained in:
parent
ec091efe3b
commit
ffac83864d
28 changed files with 1114 additions and 537 deletions
|
@ -0,0 +1,14 @@
|
|||
import { SchemaOf, object, array, string, bool } from 'yup';
|
||||
|
||||
import { Values } from './types';
|
||||
|
||||
export function validation(): SchemaOf<Values> {
|
||||
return object({
|
||||
capabilities: array()
|
||||
.of(string().default(''))
|
||||
.default(['compute', 'utility']),
|
||||
enabled: bool().default(false),
|
||||
selectedGPUs: array().of(string()).default(['all']),
|
||||
useSpecific: bool().default(false),
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue