rules(kubernetes): require positive value for numeric cpu limits
This commit is contained in:
parent
c753d30505
commit
9c1b7ae13d
|
@ -24,11 +24,13 @@ rules:
|
|||
cpu: &resources-cpu
|
||||
oneOf:
|
||||
- type: number
|
||||
minimum: 1
|
||||
- type: string
|
||||
pattern: "[1-9][0-9]*m"
|
||||
memory: &resources-memory
|
||||
oneOf:
|
||||
- type: number
|
||||
minimum: 1
|
||||
- type: string
|
||||
pattern: "[1-9][0-9]*[KMG]i"
|
||||
requests:
|
||||
|
|
Loading…
Reference in New Issue