mirror of
https://github.com/truenas/charts.git
synced 2026-05-16 14:12:59 +08:00
NAS-122694 / 23.10 / Add some validation in webdav and other apps (#1312)
* Add some validation in webdav * add validation in resources * formatting * Update error message * remove extra `\` * negate logic * bump
This commit is contained in:
@@ -3,7 +3,7 @@ description: Terraria is a land of adventure! A land of mystery! A land that's y
|
||||
annotations:
|
||||
title: Terraria
|
||||
type: application
|
||||
version: 1.0.6
|
||||
version: 1.0.7
|
||||
apiVersion: v2
|
||||
appVersion: '1.4.4.9'
|
||||
kubeVersion: '>=1.16.0-0'
|
||||
|
||||
@@ -305,6 +305,13 @@ questions:
|
||||
description: CPU limit for Terraria.
|
||||
schema:
|
||||
type: string
|
||||
max_length: 6
|
||||
valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
|
||||
valid_chars_error: |
|
||||
Valid CPU limit formats are</br>
|
||||
- Plain Integer - eg. 1</br>
|
||||
- Float - eg. 0.5</br>
|
||||
- Milicpu - eg. 500m
|
||||
default: "4000m"
|
||||
required: true
|
||||
- variable: memory
|
||||
@@ -312,5 +319,13 @@ questions:
|
||||
description: Memory limit for Terraria.
|
||||
schema:
|
||||
type: string
|
||||
max_length: 12
|
||||
valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
|
||||
valid_chars_error: |
|
||||
Valid Memory limit formats are</br>
|
||||
- Suffixed with E/P/T/G/M/K - eg. 1G</br>
|
||||
- Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
|
||||
- Plain Integer in bytes - eg. 1024</br>
|
||||
- Exponent - eg. 134e6
|
||||
default: "8Gi"
|
||||
required: true
|
||||
|
||||
Reference in New Issue
Block a user