Skip to content

Commit

Permalink
add topologySpreadConstraints (#123)
Browse files Browse the repository at this point in the history
Signed-off-by: André Bauer <[email protected]>

Signed-off-by: André Bauer <[email protected]>
  • Loading branch information
monotek authored Sep 15, 2022
1 parent aa43935 commit 4e3f4c5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
4 changes: 2 additions & 2 deletions charts/visual-regression-tracker/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ sources:
- https://github.com/Visual-Regression-Tracker/Visual-Regression-Tracker
- https://github.com/kokuwaio/helm-charts/tree/main/charts/visual-regression-tracker
type: application
version: 0.3.1
version: 0.4.0
appVersion: "4.20.4"
maintainers:
- name: monotek
email: [email protected]
dependencies:
- name: postgresql
version: "11.6.15"
version: "11.9.1"
repository: https://charts.bitnami.com/bitnami
condition: vrtConfig.postgresql.enabled
11 changes: 8 additions & 3 deletions charts/visual-regression-tracker/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,19 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
volumes:
{{- if .Values.topologySpreadConstraints }}
topologySpreadConstraints:
{{- toYaml .Values.topologySpreadConstraints | nindent 8 }}
{{- end }}
{{- if and .Values.persistence.enabled .Values.persistence.existingClaim }}
volumes:
- name: {{ template "visual-regression-tracker.fullname" . }}
persistentVolumeClaim:
claimName: {{ .Values.persistence.existingClaim | default (include "visual-regression-tracker.fullname" .) }}
{{- else if not .Values.persistence.enabled }}
- name: {{ template "visual-regression-tracker.fullname" . }}
emptyDir: {}
volumes:
- name: {{ template "visual-regression-tracker.fullname" . }}
emptyDir: {}
{{- else if and .Values.persistence.enabled (not .Values.persistence.existingClaim) }}
volumeClaimTemplates:
- metadata:
Expand Down
2 changes: 2 additions & 0 deletions charts/visual-regression-tracker/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ tolerations: []

affinity: {}

topologySpreadConstraints: []

podAnnotations: {}

podSecurityContext: {}
Expand Down

0 comments on commit 4e3f4c5

Please sign in to comment.