Skip to content

Commit

Permalink
Merge pull request #36 from tberreis/master
Browse files Browse the repository at this point in the history
Optionally add labels to PVC
  • Loading branch information
jtackaberry authored Nov 13, 2024
2 parents 4cec58b + ae73af4 commit e63291d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/rqlite/templates/_statefulset.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,10 @@ spec:
apiVersion: v1
metadata:
name: storage
{{- with $persistence.labels }}
labels:
{{- toYaml . | nindent 10 }}
{{- end }}
spec:
{{- with $persistence.storageClassName }}
storageClassName: {{ . }}
Expand Down
2 changes: 2 additions & 0 deletions charts/rqlite/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ persistence:
# Setting this to false will store data on an empheral volume, which will be lost when
# the pod is cycled. Obviously this is only useful for testing or limited use cases.
enabled: true
# Labels for the persistent volume claim
labels: {}
# If null, the default storage class will be used
storageClassName: null
size: 10Gi
Expand Down

0 comments on commit e63291d

Please sign in to comment.