Skip to content

Commit

Permalink
feat: make probes conditional (#466)
Browse files Browse the repository at this point in the history
* Add conditional probes
* Add comments to probes
* Bump chart version
* Fix typos

Co-authored-by: Michal Čihař <[email protected]>
  • Loading branch information
st-myk and nijel authored Sep 16, 2024
1 parent 7775465 commit f4ac690
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/weblate/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ appVersion: 5.7.2.1
description: Weblate is a free web-based translation management system.
name: weblate
type: application
version: 0.5.11
version: 0.5.12
home: https://weblate.org/
icon: https://s.weblate.org/cdn/weblate.svg
maintainers:
Expand Down
2 changes: 1 addition & 1 deletion charts/weblate/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# weblate

![Version: 0.5.11](https://img.shields.io/badge/Version-0.5.11-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 5.7.2.1](https://img.shields.io/badge/AppVersion-5.7.2.1-informational?style=flat-square)
![Version: 0.5.12](https://img.shields.io/badge/Version-0.5.12-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 5.7.2.1](https://img.shields.io/badge/AppVersion-5.7.2.1-informational?style=flat-square)

Weblate is a free web-based translation management system.

Expand Down
4 changes: 2 additions & 2 deletions charts/weblate/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ spec:
name: {{ .Values.externalSecretName }}
{{- end }}
{{- end }}
{{- with .Values.livenessProbe }}
{{- if .Values.livenessProbe }}
livenessProbe:
httpGet:
path: {{ $.Values.sitePrefix }}/healthz/
Expand All @@ -188,7 +188,7 @@ spec:
initialDelaySeconds: {{ .initialDelaySeconds }}
periodSeconds: {{ .periodSeconds }}
{{- end }}
{{- with .Values.readinessProbe }}
{{- if .Values.readinessProbe }}
readinessProbe:
httpGet:
path: {{ $.Values.sitePrefix }}/healthz/
Expand Down
2 changes: 2 additions & 0 deletions charts/weblate/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,13 @@ tolerations: []

affinity: {}

# Can be removed when running Weblate service without probes configured
livenessProbe:
initialDelaySeconds: 300
periodSeconds: 30
failureThreshold: 10

# Can be removed when running Weblate service without probes configured
readinessProbe:
initialDelaySeconds: 60
periodSeconds: 30
Expand Down

0 comments on commit f4ac690

Please sign in to comment.