feat(custom-app): Allow to disable probes on GUI (#1860)

* feat(custom-app): Allow to disable probes on GUI

* Add type and path for probes

* declutter UI if probe is disabled ;)
This commit is contained in:
Stavros Kois 2022-02-06 19:42:50 +02:00 committed by GitHub
parent 487a050fa6
commit d0c26549c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 110 additions and 1 deletions

View File

@ -19,7 +19,7 @@ name: custom-app
sources:
- https://github.com/truecharts/apps/tree/master/charts/stable/custom-app
type: application
version: 3.0.70
version: 3.0.71
annotations:
truecharts.org/catagories: |
- custom

View File

@ -117,6 +117,115 @@ questions:
attrs:
# Include{fixedEnv}
# Include{containerConfig}
- variable: probes
group: "Container Configuration"
label: "Healthcheck Probes"
schema:
additional_attrs: true
type: dict
attrs:
- variable: liveness
label: "Liveness"
description: "Liveness Probe"
schema:
additional_attrs: true
type: dict
attrs:
- variable: enabled
label: "Enable Probe"
description: "Enables the probe"
schema:
type: boolean
default: true
show_subquestions_if: true
subquestions:
- variable: type
label: "Probe Type"
description: "Probe Type"
schema:
type: string
default: "TCP"
enum:
- value: "TCP"
description: "TCP"
- value: "HTTP"
description: "HTTP"
- value: "HTTPS"
description: "HTTPS"
- variable: path
label: "Probe Path"
description: "Probe Path"
schema:
type: string
default: "/"
- variable: readiness
label: "Readiness"
description: "Readiness Probe"
schema:
additional_attrs: true
type: dict
attrs:
- variable: enabled
label: "Enable Probe"
description: "Enables the probe"
schema:
type: boolean
default: true
show_subquestions_if: true
subquestions:
- variable: type
label: "Probe Type"
description: "Probe Type"
schema:
type: string
default: "TCP"
enum:
- value: "TCP"
description: "TCP"
- value: "HTTP"
description: "HTTP"
- value: "HTTPS"
description: "HTTPS"
- variable: path
label: "Probe Path"
description: "Probe Path"
schema:
type: string
default: "/"
- variable: startup
label: "Startup"
description: "Startup Probe"
schema:
additional_attrs: true
type: dict
attrs:
- variable: enabled
label: "Enable Probe"
description: "Enables the probe"
schema:
type: boolean
default: true
show_subquestions_if: true
subquestions:
- variable: type
label: "Probe Type"
description: "Probe Type"
schema:
type: string
default: "TCP"
enum:
- value: "TCP"
description: "TCP"
- value: "HTTP"
description: "HTTP"
- value: "HTTPS"
description: "HTTPS"
- variable: path
label: "Probe Path"
description: "Probe Path"
schema:
type: string
default: "/"
- variable: service
group: "Networking and Services"