Skip to content

Commit

Permalink
Enable custom annotations for shared-volume PVC
Browse files Browse the repository at this point in the history
This change adds the option to set custom annotations for the
shared-volume PVC.
  • Loading branch information
lindhe authored and slint committed May 23, 2024
1 parent 4e61cb1 commit 78e912f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/invenio/templates/persistentvolumeclaim.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ metadata:
app: web
annotations:
helm.sh/resource-policy: keep
{{- if .Values.persistence.annotations }}
{{- .Values.persistence.annotations | toYaml | nindent 4 }}
{{- end }}
spec:
{{- if .Values.persistence.storage_class }}
storageClassName: {{ .Values.persistence.storage_class }}
Expand Down
1 change: 1 addition & 0 deletions charts/invenio/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ persistence:
enabled: true
name: "shared-volume"
access_mode: ReadWriteMany
annotations: {}
size: 10G
storage_class: ""

Expand Down

0 comments on commit 78e912f

Please sign in to comment.