Skip to content

Commit 31c1a27

Browse files
committed
feat: adding PDB for sliding-sync-proxy by default
1 parent f6b877c commit 31c1a27

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

charts/synapse/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
---
22
name: synapse
3-
version: 0.7.1
3+
version: 0.8.0
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{{- if .Values.slidingSyncProxy.enabled }}
2+
{{- if .Values.slidingSyncProxy.podDisruptionBudget.ebabled }}
3+
apiVersion: policy/v1
4+
kind: PodDisruptionBudget
5+
metadata:
6+
name: sliding-sync-proxy
7+
spec:
8+
{{- if and .Values.slidingSyncProxy.podDisruptionBudget.minAvailable (not (hasKey .Values.slidingSyncProxy.podDisruptionBudget "maxUnavailable")) }}
9+
minAvailable: {{ .Values.slidingSyncProxy.podDisruptionBudget.minAvailable }}
10+
{{- else if .Values.slidingSyncProxy.podDisruptionBudget.maxUnavailable }}
11+
maxUnavailable: {{ .Values.slidingSyncProxy.podDisruptionBudget.maxUnavailable }}
12+
{{- end }}
13+
selector:
14+
matchLabels:
15+
{{- include "sliding-sync-proxy.selectorLabels" . | nindent 6 }}
16+
{{- end }}
17+
{{- end }}

charts/synapse/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,12 @@ slidingSyncProxy:
341341
nodeSelector: {}
342342
tolerations: []
343343
affinity: {}
344+
podDisruptionBudget:
345+
ebabled: true
346+
# Define either 'minAvailable' or 'maxUnavailable', never both.
347+
minAvailable: 1
348+
# -- Maximum unavailable pods set in PodDisruptionBudget. If set, 'minAvailable' is ignored.
349+
# maxUnavailable: 1
344350
updateStrategy:
345351
type: RollingUpdate
346352
rollingUpdate:

0 commit comments

Comments
 (0)