From 35bdcb08ab221740e1dd8bf090d438a7b7ac40fb Mon Sep 17 00:00:00 2001 From: HUSSAIN GANDHI <69318875+Hussain-Gandhi@users.noreply.github.com> Date: Thu, 23 Mar 2023 19:56:26 +0530 Subject: [PATCH] Fixed condition issue for disabling the health check. (#25) * Fixed condition issue for disabling the health check. * Fixed condition issue for disabling the health check. --- charts/polymorphic-app/Chart.yaml | 4 +++- charts/polymorphic-app/templates/service.yaml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/charts/polymorphic-app/Chart.yaml b/charts/polymorphic-app/Chart.yaml index dbc9020..04d4454 100644 --- a/charts/polymorphic-app/Chart.yaml +++ b/charts/polymorphic-app/Chart.yaml @@ -1,6 +1,8 @@ apiVersion: v2 name: polymorphic-app description: A Helm chart for deploying any custom applications, specifically polymorphic applications. +maintainers: + - name: improwised # A chart can be either an 'application' or a 'library' chart. # @@ -14,7 +16,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. -version: 1.0.0 +version: 1.0.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. diff --git a/charts/polymorphic-app/templates/service.yaml b/charts/polymorphic-app/templates/service.yaml index 3203405..55a75e2 100644 --- a/charts/polymorphic-app/templates/service.yaml +++ b/charts/polymorphic-app/templates/service.yaml @@ -104,7 +104,7 @@ spec: exec: command: ["bash","-c","sleep 120"] - {{- if or ($.Values.serviceTemplate.healthcheck) (.healthcheck) }} + {{- if or ($.Values.serviceTemplate.healthcheck.enabled) (.healthcheck.enabled) }} {{- if and (or (eq .healthcheck.type "httpGet") (eq $.Values.serviceTemplate.healthcheck.type "httpGet")) (or .healthcheck.path $.Values.serviceTemplate.healthcheck.path) }} livenessProbe: httpGet: