Skip to content

Commit 37bbad6

Browse files
Mart-KucWildPigDeveloperpre-commit-ci[bot]
authored
feat(deployment): Add support for 'topologySpreadConstraints' (#771)
* feat(deployment): Add support for 'topologySpreadConstraints' * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: Kucin, Martin <martin.kucin@yunextraffic.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 6a11ed1 commit 37bbad6

File tree

5 files changed

+21
-3
lines changed

5 files changed

+21
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1+
## 0.5.28
2+
3+
[FEATURE] Add support for `topologySpreadConstraints` [#747](https://github.com/WeblateOrg/helm/pull/771)
4+
[FEATURE] Add support for `PodDisruptionBudget` [#727](https://github.com/WeblateOrg/helm/pull/727)
5+
16
## 0.5.27
27

38
[FEATURE] Add support for additional K8S resources [#731](https://github.com/WeblateOrg/helm/pull/731)
4-
[FEATURE] Add support for `PodDisruptionBudget` [#727](https://github.com/WeblateOrg/helm/pull/727)
59

610
## 0.5.26
711

charts/weblate/Chart.yaml

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

charts/weblate/README.md

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

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

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

@@ -128,4 +128,5 @@ $ helm install my-release weblate/weblate
128128
| sitePrefix | string | `""` | Site Prefix (ex: /weblate) |
129129
| siteTitle | string | `"Weblate"` | |
130130
| tolerations | list | `[]` | |
131+
| topologySpreadConstraints | list | `[]` | |
131132
| updateStrategy | string | `"Recreate"` | |

charts/weblate/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,10 @@ spec:
250250
nodeSelector:
251251
{{- toYaml . | nindent 8 }}
252252
{{- end }}
253+
{{- with .Values.topologySpreadConstraints }}
254+
topologySpreadConstraints:
255+
{{- toYaml . | nindent 8 }}
256+
{{- end }}
253257
{{- with .Values.affinity }}
254258
affinity:
255259
{{- toYaml . | nindent 8 }}

charts/weblate/values.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,15 @@ pdb:
216216
## Maximum unavailable instances
217217
# maxUnavailable: ""
218218

219+
## Topology spread constraints rely on node labels to identify the topology domain(s) that each Node is in
220+
topologySpreadConstraints: []
221+
# - maxSkew: 1
222+
# topologyKey: failure-domain.beta.kubernetes.io/zone
223+
# whenUnsatisfiable: DoNotSchedule
224+
# labelSelector:
225+
# matchLabels:
226+
# app.kubernetes.io/instance: weblate
227+
219228
postgresql:
220229
global:
221230
security:

0 commit comments

Comments
 (0)