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:
Stavros Kois authored and GitHub committed 2023-07-06 16:55:38 +03:00
1 parent 252d9d8628
commit 56b882e259
81 files changed
+674 -70

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@ description: Tautulli is a python based web application for monitoring, analytic
annotations:
title: Tautulli
type: application
version: 1.0.1
version: 1.0.2
apiVersion: v2
appVersion: '2.12.4'
kubeVersion: '>=1.16.0-0'
@@ -208,9 +208,13 @@ questions:
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"
valid_chars: '^(0\\.[1-9]|[1-9][0-9]*)(\\.[0-9]|m?)$'
valid_chars_error: 'Valid CPU limit formats are (Plain Integer - eg. 1), (Float - eg. 0.5), (Milicpu - eg. 500m)'
required: true
- variable: memory
label: Memory
@@ -219,6 +223,11 @@ questions:
type: string
max_length: 12
valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
valid_chars_error: 'Valid Memory limit formats are (Suffixed with E/P/T/G/M/K - eg. 1G), (Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi), (Plain Integer in bytes - eg. 1024), (Exponent - eg. 134e6)'
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