Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature(barman): Add additional conf options #615

Merged
merged 2 commits into from
Mar 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/barman/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: barman
type: application
description: Chart for Barman PostgreSQL Backup and Recovery Manager
version: 0.5.1
version: 0.6.0
appVersion: "v2.17"
keywords:
- barman
Expand Down
5 changes: 4 additions & 1 deletion charts/barman/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions charts/barman/templates/configmap-barman-backups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,7 @@ data:
{{- if hasKey . "retentionPolicy" }}
retention_policy = {{ .retentionPolicy }}
{{- end }}
{{- if hasKey . "additionalConfiguration" }}
{{- .additionalConfiguration | nindent 6 }}
{{- end }}
{{- end }}
6 changes: 6 additions & 0 deletions charts/barman/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ spec:
- mountPath: /etc/cron.d/barman
name: barman-cron-config
subPath: barman
{{- with .Values.deployment.additionalVolumeMounts }}
{{- toYaml . | nindent 12 }}
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumes:
Expand Down Expand Up @@ -91,6 +94,9 @@ spec:
- name: barman-cron-config
configMap:
name: {{ include "barman.fullname" . }}-cron-config
{{- with .Values.deployment.additionalVolumes }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.nodeSelector }}
nodeSelector:
{{- toYaml .Values.nodeSelector | nindent 8 }}
Expand Down
6 changes: 6 additions & 0 deletions charts/barman/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ deployment:
strategy:
# deployment.strategy.type -- Specify the strategy used to replace old Pods by new ones
type: RollingUpdate
# deployment.additionalVolumeMounts -- Specify additional VolumeMounts for the barman container
additionalVolumeMounts: []
# deployment.additionalVolumes -- Specify additional Volumes for the deployment
additionalVolumes: []

persistence:
data:
Expand Down Expand Up @@ -76,6 +80,8 @@ barman:
databaseSlotName: barman
# barman.backups[0].lastBackupMaximumAge -- Barman last backup maximum age
lastBackupMaximumAge: "1 day"
# barman.backups[0].additionalConfiguration -- Barman additional Parameters for configuration File
additionalConfiguration: ""
postgresql:
# barman.backups[0].postgresql.host -- Postgresql host
host: postgresql
Expand Down