Skip to content

Commit

Permalink
Add h2ogpt-pvc.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
lakinduakash committed Oct 25, 2024
1 parent 8c552e5 commit cc15e61
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
15 changes: 0 additions & 15 deletions helm/h2ogpt-chart/templates/h2ogpt-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -341,18 +341,3 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
---
{{- if and (.Values.h2ogpt.enabled) (not .Values.h2ogpt.storage.useEphemeral) }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ include "h2ogpt.fullname" . }}-volume
namespace: {{ include "h2ogpt.namespace" . | quote }}
spec:
accessModes:
- ReadWriteOnce
storageClassName: {{ .Values.h2ogpt.storage.class }}
resources:
requests:
storage: {{ .Values.h2ogpt.storage.size | quote }}
{{- end }}
14 changes: 14 additions & 0 deletions helm/h2ogpt-chart/templates/h2ogpt-pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{{- if and (.Values.h2ogpt.enabled) (not .Values.h2ogpt.storage.useEphemeral) }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ include "h2ogpt.fullname" . }}-volume
namespace: {{ include "h2ogpt.namespace" . | quote }}
spec:
accessModes:
- ReadWriteOnce
storageClassName: {{ .Values.h2ogpt.storage.class }}
resources:
requests:
storage: {{ .Values.h2ogpt.storage.size | quote }}
{{- end }}

0 comments on commit cc15e61

Please sign in to comment.