Skip to content

Commit f8210ba

Browse files
authored
feat(deployment): Add 'successThreshold' and 'timeoutSeconds' for Probes (#584)
* feat(deployment): Add 'successThreshold' and 'timeoutSeconds' for Probes
1 parent 413881b commit f8210ba

5 files changed

Lines changed: 20 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.5.24
2+
3+
[FEATURE] Add `timeoutSeconds` and `successThreshold` for **livenessProbe** and **readinessProbe** [#583](https://github.com/WeblateOrg/helm/issues/583)
4+
15
## 0.5.23
26

37
[BUGFIX] Only trigger a reload of the pod, if the pod template change or the configuration changes [#557](https://github.com/WeblateOrg/helm/pull/557)

charts/weblate/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ appVersion: 5.11.4.4
44
description: Weblate is a free web-based translation management system.
55
name: weblate
66
type: application
7-
version: 0.5.23
7+
version: 0.5.24
88
home: https://weblate.org/
99
icon: https://s.weblate.org/cdn/weblate.svg
1010
maintainers:

charts/weblate/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# weblate
22

3-
![Version: 0.5.23](https://img.shields.io/badge/Version-0.5.23-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 5.11.4.4](https://img.shields.io/badge/AppVersion-5.11.4.4-informational?style=flat-square)
3+
![Version: 0.5.24](https://img.shields.io/badge/Version-0.5.24-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 5.11.4.4](https://img.shields.io/badge/AppVersion-5.11.4.4-informational?style=flat-square)
44

55
Weblate is a free web-based translation management system.
66

@@ -71,6 +71,8 @@ $ helm install my-release weblate/weblate
7171
| livenessProbe.failureThreshold | int | `10` | |
7272
| livenessProbe.initialDelaySeconds | int | `300` | |
7373
| livenessProbe.periodSeconds | int | `30` | |
74+
| livenessProbe.successThreshold | int | `1` | |
75+
| livenessProbe.timeoutSeconds | int | `5` | |
7476
| nameOverride | string | `""` | |
7577
| nodeSelector | object | `{}` | |
7678
| persistence.accessMode | string | `"ReadWriteOnce"` | |
@@ -94,6 +96,8 @@ $ helm install my-release weblate/weblate
9496
| readinessProbe.failureThreshold | int | `2` | |
9597
| readinessProbe.initialDelaySeconds | int | `60` | |
9698
| readinessProbe.periodSeconds | int | `30` | |
99+
| readinessProbe.successThreshold | int | `1` | |
100+
| readinessProbe.timeoutSeconds | int | `5` | |
97101
| redis.architecture | string | `"standalone"` | |
98102
| redis.auth.enabled | bool | `true` | |
99103
| redis.auth.existingSecret | string | `""` | |

charts/weblate/templates/deployment.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,19 +185,23 @@ spec:
185185
{{- if .Values.livenessProbe }}
186186
livenessProbe:
187187
httpGet:
188-
path: {{ $.Values.sitePrefix }}/healthz/
188+
path: {{ .Values.sitePrefix }}/healthz/
189189
port: http
190190
failureThreshold: {{ .Values.livenessProbe.failureThreshold }}
191191
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
192+
successThreshold: {{ .Values.livenessProbe.successThreshold }}
193+
timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
192194
periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
193195
{{- end }}
194196
{{- if .Values.readinessProbe }}
195197
readinessProbe:
196198
httpGet:
197-
path: {{ $.Values.sitePrefix }}/healthz/
199+
path: {{ .Values.sitePrefix }}/healthz/
198200
port: http
199201
failureThreshold: {{ .Values.readinessProbe.failureThreshold }}
200202
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
203+
successThreshold: {{ .Values.readinessProbe.successThreshold }}
204+
timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
201205
periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
202206
{{- end }}
203207
volumeMounts:

charts/weblate/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,13 +182,17 @@ affinity: {}
182182
livenessProbe:
183183
initialDelaySeconds: 300
184184
periodSeconds: 30
185+
timeoutSeconds: 5
185186
failureThreshold: 10
187+
successThreshold: 1
186188

187189
# Can be removed when running Weblate service without probes configured
188190
readinessProbe:
189191
initialDelaySeconds: 60
190192
periodSeconds: 30
193+
timeoutSeconds: 5
191194
failureThreshold: 2
195+
successThreshold: 1
192196

193197
postgresql:
194198
auth:

0 commit comments

Comments
 (0)