From d0c26549c97431d7473fb2434adc75b83ba3ebc1 Mon Sep 17 00:00:00 2001 From: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Date: Sun, 6 Feb 2022 19:42:50 +0200 Subject: [PATCH] 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 ;) --- charts/stable/custom-app/Chart.yaml | 2 +- charts/stable/custom-app/questions.yaml | 109 ++++++++++++++++++++++++ 2 files changed, 110 insertions(+), 1 deletion(-) diff --git a/charts/stable/custom-app/Chart.yaml b/charts/stable/custom-app/Chart.yaml index d42db3017ca..8ee7ac0d0c3 100644 --- a/charts/stable/custom-app/Chart.yaml +++ b/charts/stable/custom-app/Chart.yaml @@ -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 diff --git a/charts/stable/custom-app/questions.yaml b/charts/stable/custom-app/questions.yaml index 0f0a38d0c61..5458423cea9 100644 --- a/charts/stable/custom-app/questions.yaml +++ b/charts/stable/custom-app/questions.yaml @@ -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"