feat(Apps): Hide custom resource limits by default (falls back to common defaults)

This commit is contained in:
kjeld Schouten-Lebbing
2021-11-07 17:55:11 +01:00
parent 66c5becadf
commit 6efe6e6ace
+41 -33
View File
@@ -9,46 +9,54 @@
- "definitions/gpuConfiguration" - "definitions/gpuConfiguration"
attrs: [] attrs: []
- variable: resources
- variable: advancedresources
label: "Set Custom Resource Limits/Requests (Advanced)"
group: "Resources and Devices" group: "Resources and Devices"
label: ""
schema: schema:
type: dict type: boolean
attrs: default: false
- variable: limits show_subquestions_if: true
label: "Advanced Limit Resource Consumption" subquestions:
- variable: resources
label: ""
schema: schema:
type: dict type: dict
attrs: attrs:
- variable: cpu - variable: limits
label: "CPU" label: "Advanced Limit Resource Consumption"
schema: schema:
type: string type: dict
default: "4000m" attrs:
valid_chars: '^(?!^0(\.0|m|)$)([0-9]+)(\.[0-9]|m?)$' - variable: cpu
- variable: memory label: "CPU"
label: "Memory RAM" schema:
type: string
default: "4000m"
valid_chars: '^(?!^0(\.0|m|)$)([0-9]+)(\.[0-9]|m?)$'
- variable: memory
label: "Memory RAM"
schema:
type: string
default: "8Gi"
valid_chars: '^(?!^0(e[0-9]|[EPTGMK]i?|)$)([0-9]+)(|[EPTGMK]i?|e[0-9]+)$'
- variable: requests
label: "Advanced Request minimum resources required"
schema: schema:
type: string type: dict
default: "8Gi" attrs:
valid_chars: '^(?!^0(e[0-9]|[EPTGMK]i?|)$)([0-9]+)(|[EPTGMK]i?|e[0-9]+)$' - variable: cpu
- variable: requests label: "CPU"
label: "Advanced Request minimum resources required" schema:
schema: type: string
type: dict default: "10m"
attrs: valid_chars: '^(?!^0(\.0|m|)$)([0-9]+)(\.[0-9]|m?)$'
- variable: cpu - variable: memory
label: "CPU" label: "Memory RAM"
schema: schema:
type: string type: string
default: "10m" default: "50Mi"
valid_chars: '^(?!^0(\.0|m|)$)([0-9]+)(\.[0-9]|m?)$' valid_chars: '^(?!^0(e[0-9]|[EPTGMK]i?|)$)([0-9]+)(|[EPTGMK]i?|e[0-9]+)$'
- variable: memory
label: "Memory RAM"
schema:
type: string
default: "50Mi"
valid_chars: '^(?!^0(e[0-9]|[EPTGMK]i?|)$)([0-9]+)(|[EPTGMK]i?|e[0-9]+)$'
- variable: deviceList - variable: deviceList
label: "Mount USB devices" label: "Mount USB devices"