Skip to content

Commit ae77582

Browse files
Feature: add element.revisionHistoryLimit parameter (#625)
* add element.revisionHistoryLimit parameter * helm-docs: automated action --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent ac23083 commit ae77582

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

charts/matrix/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ sources:
88

99
type: application
1010

11-
version: 17.0.1
11+
version: 17.1.0
1212

1313
# renovate: image=matrixdotorg/synapse
1414
appVersion: v1.117.0

charts/matrix/README.md

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

3-
![Version: 17.0.1](https://img.shields.io/badge/Version-17.0.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v1.117.0](https://img.shields.io/badge/AppVersion-v1.117.0-informational?style=flat-square)
3+
![Version: 17.1.0](https://img.shields.io/badge/Version-17.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v1.117.0](https://img.shields.io/badge/AppVersion-v1.117.0-informational?style=flat-square)
44

55
A Helm chart to deploy a Matrix homeserver stack on Kubernetes
66

@@ -438,6 +438,7 @@ A Helm chart to deploy a Matrix homeserver stack on Kubernetes
438438
| element.probes.startup | object | `{}` | |
439439
| element.replicaCount | int | `1` | replicas for element pods |
440440
| element.resources | object | `{}` | |
441+
| element.revisionHistoryLimit | int | `2` | set the revisionHistoryLimit to decide how many replicaSets are kept when you change a deployment. Explicitly setting this field to 0, will result in cleaning up all the history of your Deployment thus that Deployment will not be able to roll back. |
441442
| element.roomDirectoryServers | list | `["matrix.org"]` | Servers to show in the Explore menu (the current server is always shown) |
442443
| element.service.port | int | `80` | service port for element |
443444
| element.service.type | string | `"ClusterIP"` | service type for element |

charts/matrix/templates/element/deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ metadata:
88
{{ include "matrix.element.labels" . | indent 4}}
99
spec:
1010
replicas: {{ .Values.element.replicaCount }}
11+
revisionHistoryLimit: {{ .Values.element.revisionHistoryLimit }}
1112
selector:
1213
matchLabels:
1314
app.kubernetes.io/name: {{ include "matrix.name" . }}-element

charts/matrix/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1492,6 +1492,12 @@ element:
14921492
# Element Desktop, or any other Matrix clients
14931493
enabled: true
14941494

1495+
# -- set the revisionHistoryLimit to decide how many replicaSets are
1496+
# kept when you change a deployment. Explicitly setting this field to 0,
1497+
# will result in cleaning up all the history of your Deployment thus that
1498+
# Deployment will not be able to roll back.
1499+
revisionHistoryLimit: 2
1500+
14951501
ingress:
14961502
# -- ingressClassName for the k8s ingress
14971503
className: "nginx"

0 commit comments

Comments
 (0)