Skip to content

Commit

Permalink
[ENHANCEMENT] Refactor PVC configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Akshay Iyyadurai Balasundaram <[email protected]>
  • Loading branch information
ibakshay committed Oct 22, 2024
1 parent a5ebe37 commit 890b126
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions charts/perses/templates/pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.persistence.storageClass }}
storageClassName: {{ .Values.persistence.storageClass }}
{{- end }}
accessModes:
{{- range .Values.persistence.accessModes }}
- {{ . | quote }}
Expand Down
3 changes: 1 addition & 2 deletions charts/perses/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -430,8 +430,7 @@
"required": [
"accessModes",
"enabled",
"size",
"storageClass"
"size"
]
},
"livenessProbe": {
Expand Down
4 changes: 2 additions & 2 deletions charts/perses/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ persistence:
# -- If disabled, it will use a emptydir volume
enabled: false

# -- Specify the `storageClass` used to provision the volume
storageClass: "default"
# -- Specify the `storageClass` to provision the volume for the PVC. If you don't specify a `storageClass`, a default `storageClass` will be used.
# storageClass: ""

# -- PVC Access Modes for data volume
accessModes:
Expand Down

0 comments on commit 890b126

Please sign in to comment.