Skip to content

Commit

Permalink
make postgres PVC support an optional storage class
Browse files Browse the repository at this point in the history
  • Loading branch information
ruckc committed May 19, 2023
1 parent a8545b0 commit 0bd1c42
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/postgres/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.0.2
version: 1.0.3

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
3 changes: 3 additions & 0 deletions charts/postgres/templates/pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ metadata:
labels:
{{- include "postgres.labels" . | nindent 4 }}
spec:
{{- if .Values.persistence.className }}
storageClassName: {{ .Values.persistence.className | quote }}
{{- end }}
accessModes:
- ReadWriteOnce
resources:
Expand Down
1 change: 1 addition & 0 deletions charts/postgres/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ tolerations: []
affinity: {}

persistence:
# className: aws-ebs
size: 50Gi

database:
Expand Down

0 comments on commit 0bd1c42

Please sign in to comment.