1
0
Fork 0

rules(kubernetes): require positive value for numeric cpu limits

This commit is contained in:
ssube 2019-06-16 19:16:32 -05:00
parent c753d30505
commit 9c1b7ae13d
1 changed files with 2 additions and 0 deletions

View File

@ -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: