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

fix: update pvc values usage in PersistentVolumeClaim #19

Merged
merged 6 commits into from
Jul 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/local-ai/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ appVersion: 0.1.0
description: A Helm chart for deploying LocalAI to a Kubernetes cluster
name: local-ai
type: application
version: 2.1.0
version: 2.1.1
19 changes: 9 additions & 10 deletions charts/local-ai/templates/pvc-models.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
{{- if .Values.models.persistence.enabled }}
{{- if .Values.models.persistence.pvc.enabled }}
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: {{ template "local-ai.fullname" . }}
namespace: {{ .Release.Namespace | quote }}
labels:
{{- include "local-ai.labels" . | nindent 4 }}
labels: {{ include "local-ai.labels" . | nindent 4 }}
{{- with .Values.models.persistence.pvc.annotations }}
annotations:
{{- if .Values.models.persistence.annotations }}
{{- toYaml .Values.models.persistence.annotations | nindent 4 }}
{{- end }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.models.persistence.storageClass }}
storageClassName: {{ .Values.models.persistence.storageClass }}
{{- with .Values.models.persistence.pvc.storageClass }}
storageClassName: {{ . }}
{{- end }}
{{- range .Values.models.persistence.pvc.accessModes }}
accessModes:
{{- range .Values.models.persistence.accessModes }}
- {{ . | quote }}
{{- end }}
resources:
requests:
storage: {{ .Values.models.persistence.size | quote }}
storage: {{ .Values.models.persistence.pvc.size | quote }}
{{- end }}