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

helm: add storage class to instance and backup #167

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions helm/postgres/templates/postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ spec:
- name: {{ default "instance1" .Values.instanceName | quote }}
replicas: {{ default 1 .Values.instanceReplicas }}
dataVolumeClaimSpec:
storageClassName: {{ default "standard" .Values.instanceStorageClassName | quote }}
Copy link

@genofire genofire Feb 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

defaults (instanceStorageClassName) should be defined in values.yaml like postgresVersion

accessModes:
- "ReadWriteOnce"
resources:
Expand Down Expand Up @@ -56,6 +57,7 @@ spec:
{{- if $repo.volume }}
volume:
volumeClaimSpec:
storageClassName: {{ default "standard" $repo.volume.backupStorageClassName | quote }}
accessModes:
- "ReadWriteOnce"
resources:
Expand Down
2 changes: 1 addition & 1 deletion helm/postgres/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ postgresVersion: 14
# region: ""
# # key is the S3 key. This is stored in a Secret.
# key: ""
# # keySecret is the S3 key secret. This is tored in a Secret.
# # keySecret is the S3 key secret. This is stored in a Secret.
# keySecret: ""
# # encryptionPassphrase is an optional parameter to enable encrypted backups
# # with pgBackRest. This is encrypted by pgBackRest and does not use S3's
Expand Down