From cc15e61718d5c22329c01c66f4deb6d34739f37d Mon Sep 17 00:00:00 2001 From: Lakindu Date: Fri, 25 Oct 2024 18:14:56 +0530 Subject: [PATCH] Add h2ogpt-pvc.yaml --- .../h2ogpt-chart/templates/h2ogpt-deployment.yaml | 15 --------------- helm/h2ogpt-chart/templates/h2ogpt-pvc.yaml | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 15 deletions(-) create mode 100644 helm/h2ogpt-chart/templates/h2ogpt-pvc.yaml diff --git a/helm/h2ogpt-chart/templates/h2ogpt-deployment.yaml b/helm/h2ogpt-chart/templates/h2ogpt-deployment.yaml index c320d5488..92f25aae4 100644 --- a/helm/h2ogpt-chart/templates/h2ogpt-deployment.yaml +++ b/helm/h2ogpt-chart/templates/h2ogpt-deployment.yaml @@ -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 }} diff --git a/helm/h2ogpt-chart/templates/h2ogpt-pvc.yaml b/helm/h2ogpt-chart/templates/h2ogpt-pvc.yaml new file mode 100644 index 000000000..0f5ac0956 --- /dev/null +++ b/helm/h2ogpt-chart/templates/h2ogpt-pvc.yaml @@ -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 }} \ No newline at end of file