Skip to content

Commit

Permalink
Merge pull request #19 from zhekazuev/fix/pvc-value
Browse files Browse the repository at this point in the history
fix: update pvc values usage in PersistentVolumeClaim
  • Loading branch information
mudler authored Jul 31, 2023
2 parents de98fc1 + 32deb8b commit e19930c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
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 }}

0 comments on commit e19930c

Please sign in to comment.