Skip to content

Commit

Permalink
Merge pull request #24 from ndustrialio/remove-health-when-debug
Browse files Browse the repository at this point in the history
disable health checks if debug mode is enabled
  • Loading branch information
kalinon authored Aug 30, 2021
2 parents 5930fb5 + 2950080 commit 0e552b3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ndustrial/deployment/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ maintainers:
- email: devops@ndustrial.io
name: DevOps
# Please make sure that version and appVersion are always the same.
version: 0.1.12
appVersion: 0.1.12
version: 0.1.13
appVersion: 0.1.13
2 changes: 2 additions & 0 deletions ndustrial/deployment/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ spec:
ports:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- if not .Values.image.debug }}
{{- if .Values.startupProbe.enabled }}
startupProbe:
httpGet:
Expand All @@ -153,6 +154,7 @@ spec:
port: http
{{ omit .Values.readinessProbe "enabled" "path" | toYaml | nindent 12 }}
{{- end }}
{{- end }}
{{- if .Values.resources }}
resources: {{- toYaml .Values.resources | nindent 12 }}
{{- end }}
Expand Down
4 changes: 2 additions & 2 deletions ndustrial/statefulset/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ maintainers:
- email: devops@ndustrial.io
name: DevOps
# Please make sure that version and appVersion are always the same.
version: 0.1.13
appVersion: 0.1.13
version: 0.1.14
appVersion: 0.1.14
2 changes: 2 additions & 0 deletions ndustrial/statefulset/templates/statefuleset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ spec:
ports:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- if not .Values.image.debug }}
{{- if .Values.startupProbe.enabled }}
startupProbe:
httpGet:
Expand All @@ -162,6 +163,7 @@ spec:
port: http
{{ omit .Values.readinessProbe "enabled" "path" | toYaml | nindent 12 }}
{{- end }}
{{- end }}
{{- if .Values.resources }}
resources: {{- toYaml .Values.resources | nindent 12 }}
{{- end }}
Expand Down

0 comments on commit 0e552b3

Please sign in to comment.