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

feat(barman): add optional annotations to PVCs #691

Merged
merged 2 commits into from
May 25, 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
4 changes: 2 additions & 2 deletions 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.7.2
version: 0.8.0
appVersion: "v2.19"
keywords:
- barman
Expand All @@ -14,6 +14,6 @@ sources:
- https://github.com/ubc/barman-docker
- https://github.com/adfinis-sygroup/helm-charts/tree/main/charts/barman
maintainers:
- name: adfinis
- name: adfinis-sygroup
email: support@adfinis.com
url: https://adfinis.com
4 changes: 3 additions & 1 deletion charts/barman/README.md

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

12 changes: 10 additions & 2 deletions charts/barman/templates/pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ include "barman.fullname" . }}-data
labels:
{{- include "barman.labels" . | nindent 4 }}
name: {{ include "barman.fullname" . }}-data
{{- with .Values.persistence.data.annotations }}
annotations:
{{ . | nindent 4 }}
{{- end }}
spec:
accessModes:
- {{ .Values.persistence.data.accessMode | quote }}
Expand All @@ -20,9 +24,13 @@ spec:
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ include "barman.fullname" . }}-recover
labels:
{{- include "barman.labels" . | nindent 4 }}
name: {{ include "barman.fullname" . }}-recover
{{- with .Values.persistence.recover.annotations }}
annotations:
{{ . | nindent 4 }}
{{- end }}
spec:
accessModes:
- {{ .Values.persistence.recover.accessMode | quote }}
Expand Down
4 changes: 4 additions & 0 deletions charts/barman/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ persistence:
size: 20Gi
# -- Storage class
storageClass: ""
# -- Add annotations to backup data PVC
annotations: {}
recover:
# -- Enable persistent storage for recovery
enabled: false
Expand All @@ -71,6 +73,8 @@ persistence:
size: 4Gi
# -- Storage class
storageClass: ""
# -- Add annotations to recovery PVC
annotations: {}

rbac:
# -- Whether to create RBAC or not
Expand Down