(fix) make regex for resources more strict (#1072)
* make regex for resources more strict * Update validation docs * Review feedback
This commit is contained in:
@@ -14,13 +14,13 @@
|
||||
schema:
|
||||
type: string
|
||||
default: "4000m"
|
||||
valid_chars: '^([0-9]+)(\.[0-9]?|m?)$'
|
||||
valid_chars: '^(?!^0(\.0|m|)$)([0-9]+)(\.[0-9]|m?)$'
|
||||
- variable: memory
|
||||
label: "Memory RAM"
|
||||
schema:
|
||||
type: string
|
||||
default: "8Gi"
|
||||
valid_chars: '^([0-9.]+)([EPTGMK]i?|[EPTGMK]?|e[0-9]+)$'
|
||||
valid_chars: '^(?!^0(e[0-9]|[EPTGMK]i?|)$)([0-9]+)(|[EPTGMK]i?|e[0-9]+)$'
|
||||
- variable: requests
|
||||
label: "Advanced Request minimum resources required"
|
||||
schema:
|
||||
@@ -31,10 +31,10 @@
|
||||
schema:
|
||||
type: string
|
||||
default: "10m"
|
||||
valid_chars: '^([0-9]+)(\.[0-9]?|m?)$'
|
||||
valid_chars: '^(?!^0(\.0|m|)$)([0-9]+)(\.[0-9]|m?)$'
|
||||
- variable: memory
|
||||
label: "Memory RAM"
|
||||
schema:
|
||||
type: string
|
||||
default: "50Mi"
|
||||
valid_chars: '^([0-9.]+)([EPTGMK]i?|[EPTGMK]?|e[0-9]+)$'
|
||||
valid_chars: '^(?!^0(e[0-9]|[EPTGMK]i?|)$)([0-9]+)(|[EPTGMK]i?|e[0-9]+)$'
|
||||
|
||||
Reference in New Issue
Block a user