Skip to content

Commit

Permalink
feature(barman): Add additional conf options (#615)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggggut authored Mar 31, 2022
1 parent 8538ff5 commit eaa9bed
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 2 deletions.
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

0 comments on commit eaa9bed

Please sign in to comment.