fix(appdaemon) valid_chars for long | lat (#5946)
* fix(appdaemon) valid_chars for long | lat + port * revert port and increase valid_chars for long/lat * rofs false * update validation.md * md Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
This commit is contained in:
parent
4a61b0d0f7
commit
cd6661797f
|
@ -5,7 +5,7 @@ dependencies:
|
|||
repository: https://library-charts.truecharts.org
|
||||
version: 11.1.2
|
||||
deprecated: false
|
||||
description: AppDaemon is a loosely coupled, multithreaded, sandboxed python execution environment for writing automation apps for Home Assistant home automation software. It also provides a configurable dashboard (HADashboard) suitable for wall mounted tablets.
|
||||
description: AppDaemon is a loosely coupled, multi-threaded, sandboxed python execution environment for writing automation apps.
|
||||
home: https://truecharts.org/charts/stable/appdaemon
|
||||
icon: https://truecharts.org/img/hotlink-ok/chart-icons/appdaemon.png
|
||||
keywords:
|
||||
|
@ -24,7 +24,7 @@ sources:
|
|||
- https://github.com/truecharts/charts/tree/master/charts/stable/appdaemon
|
||||
- https://github.com/AppDaemon/appdaemon
|
||||
type: application
|
||||
version: 11.0.8
|
||||
version: 11.0.9
|
||||
annotations:
|
||||
truecharts.org/catagories: |
|
||||
- utilities
|
||||
|
|
|
@ -1,12 +1,22 @@
|
|||
# Input Validation
|
||||
|
||||
**`LATITUDE`** and **`LONGITUDE`**
|
||||
**`LATITUDE`**
|
||||
Accepted formats are:
|
||||
|
||||
- Float (eg. `24.2028`)
|
||||
- Negative Float (eg. `-24.2028`)
|
||||
|
||||
Regex used to match this: `^[0-9]{1,}\.{1}[0-9]{1,}$`
|
||||
You can try live [here](https://regex101.com/r/xsLGWN/1)
|
||||
Regex used to match this: `^(\+|-)?(?:90(?:(?:\.0{1,15})?)|(?:[0-9]|[1-8][0-9])(?:(?:\.[0-9]{1,15})?))$`
|
||||
You can try live [here](https://regex101.com/r/kzRvvw/1)
|
||||
|
||||
**`LONGITUDE`**
|
||||
Accepted formats are:
|
||||
|
||||
- Float (eg. `24.2028`)
|
||||
- Negative Float (eg. `-24.2028`)
|
||||
|
||||
Regex used to match this: `^(\+|-)?(?:180(?:(?:\.0{1,15})?)|(?:[0-9]|[1-9][0-9]|1[0-7][0-9])(?:(?:\.[0-9]{1,15})?))$`
|
||||
You can try live [here](https://regex101.com/r/EjuPpL/1)
|
||||
|
||||
---
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ questions:
|
|||
schema:
|
||||
type: string
|
||||
default: ""
|
||||
valid_chars: '^[0-9]{1,}\.{1}[0-9]{1,}$'
|
||||
valid_chars: '^(\+|-)?(?:90(?:(?:\.0{1,15})?)|(?:[0-9]|[1-8][0-9])(?:(?:\.[0-9]{1,15})?))$'
|
||||
required: true
|
||||
- variable: LONGITUDE
|
||||
label: Longitude
|
||||
|
@ -59,7 +59,7 @@ questions:
|
|||
schema:
|
||||
type: string
|
||||
default: ""
|
||||
valid_chars: '^[0-9]{1,}\.{1}[0-9]{1,}$'
|
||||
valid_chars: '^(\+|-)?(?:180(?:(?:\.0{1,15})?)|(?:[0-9]|[1-9][0-9]|1[0-7][0-9])(?:(?:\.[0-9]{1,15})?))$'
|
||||
required: true
|
||||
- variable: ELEVATION
|
||||
label: Elevation
|
||||
|
@ -128,7 +128,7 @@ questions:
|
|||
label: ReadOnly Root Filesystem
|
||||
schema:
|
||||
type: boolean
|
||||
default: true
|
||||
default: false
|
||||
- variable: allowPrivilegeEscalation
|
||||
label: Allow Privilege Escalation
|
||||
schema:
|
||||
|
|
|
@ -5,6 +5,7 @@ image:
|
|||
|
||||
securityContext:
|
||||
runAsNonRoot: false
|
||||
readOnlyRootFilesystem: false
|
||||
|
||||
podSecurityContext:
|
||||
runAsUser: 0
|
||||
|
@ -19,6 +20,7 @@ env:
|
|||
LATITUDE: 46
|
||||
LONGITUDE: -94
|
||||
ELEVATION: 1217
|
||||
TIMEZONE: "{{ .Values.TZ }}"
|
||||
|
||||
service:
|
||||
main:
|
||||
|
@ -26,13 +28,6 @@ service:
|
|||
main:
|
||||
port: 5050
|
||||
targetPort: 5050
|
||||
tcp:
|
||||
enabled: true
|
||||
ports:
|
||||
tcp:
|
||||
enabled: true
|
||||
port: 51050
|
||||
targetPort: 51050
|
||||
|
||||
persistence:
|
||||
conf:
|
||||
|
|
Loading…
Reference in New Issue