Skip to content

Commit

Permalink
fixed the healthcheck probes taking twice (#44)
Browse files Browse the repository at this point in the history
* fixed the healthcheck probes taking twice

* update version

* updated the healthcheck type condition
  • Loading branch information
Annavar-satish authored Jul 6, 2023
1 parent f3daa15 commit 46b332f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/polymorphic-app/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ description: A Helm chart for deploying any custom applications, specifically po
maintainers:
- name: improwised
type: application
version: 1.2.3
version: 1.2.4
appVersion: 1.0.0
3 changes: 1 addition & 2 deletions charts/polymorphic-app/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,7 @@ spec:
timeoutSeconds: 7
initialDelaySeconds: {{ .healthcheck.initialDelaySeconds | default $.Values.serviceTemplate.healthcheck.initialDelaySeconds | default "20" }}
periodSeconds: {{ .healthcheck.periodSeconds | default $.Values.serviceTemplate.healthcheck.periodSeconds | default "20" }}
{{- end }}
{{- if and (or (eq .healthcheck.type "tcpSocket") (eq $.Values.serviceTemplate.healthcheck.type "tcpSocket")) (or .healthcheck.port $.Values.serviceTemplate.healthcheck.port) }}
{{- else if and (or (eq .healthcheck.type "tcpSocket") (eq $.Values.serviceTemplate.healthcheck.type "tcpSocket")) (or .healthcheck.port $.Values.serviceTemplate.healthcheck.port) }}
livenessProbe:
tcpSocket:
port: {{ .healthcheck.port | default $.Values.serviceTemplate.healthcheck.port }}
Expand Down
4 changes: 2 additions & 2 deletions charts/polymorphic-app/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ serviceTemplate:
healthcheck:
enabled: false
type: httpGet
path: /healthz
port: http
# path: /healthz
# port: http
# initialDelaySeconds: 30
# periodSeconds: 30

Expand Down

0 comments on commit 46b332f

Please sign in to comment.