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.
main
HUSSAIN GANDHI 2023-03-23 19:56:26 +05:30 committed by GitHub
parent 34d3a42fe2
commit 35bdcb08ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,8 @@
apiVersion: v2 apiVersion: v2
name: polymorphic-app name: polymorphic-app
description: A Helm chart for deploying any custom applications, specifically polymorphic applications. 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. # 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 # 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. # 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 # This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. # incremented each time you make changes to the application.

View File

@ -104,7 +104,7 @@ spec:
exec: exec:
command: ["bash","-c","sleep 120"] 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) }} {{- if and (or (eq .healthcheck.type "httpGet") (eq $.Values.serviceTemplate.healthcheck.type "httpGet")) (or .healthcheck.path $.Values.serviceTemplate.healthcheck.path) }}
livenessProbe: livenessProbe:
httpGet: httpGet: