Skip to content

Commit

Permalink
[CLOUDGA-24038] Make persistent volume optional
Browse files Browse the repository at this point in the history
  • Loading branch information
nadarashwin committed Oct 11, 2024
1 parent 853d7ac commit 15cd306
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions stable/yugaware/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,12 @@ spec:
{{- end }}
volumes:
- name: yugaware-storage
{{- if .Values.yugaware.persistentVolume.enabled }}
persistentVolumeClaim:
claimName: {{ .Release.Name }}-yugaware-storage
{{- else }}
emptyDir: {}
{{- end }}
- name: yugaware-ui
emptyDir: {}
- name: yugaware-config
Expand Down
2 changes: 2 additions & 0 deletions stable/yugaware/templates/volumes.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.yugaware.persistentVolume.enabled }}
---
apiVersion: v1
kind: PersistentVolumeClaim
Expand All @@ -21,3 +22,4 @@ spec:
resources:
requests:
storage: {{ .Values.yugaware.storage }}
{{- end }}
3 changes: 3 additions & 0 deletions stable/yugaware/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ yugaware:
storageClass: ""
storageAnnotations: {}
multiTenant: false
## This is for testing purposes only.
persistentVolume:
enabled: true
## Name of existing ServiceAccount. When provided, the chart won't create a ServiceAccount.
## It will attach the required RBAC roles to it.
## Helpful in Yugabyte Platform GKE App.
Expand Down

0 comments on commit 15cd306

Please sign in to comment.