Skip to content

Commit ee30589

Browse files
Make PVC name configurable
1 parent 04367fd commit ee30589

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

weaviate/templates/weaviateStatefulset.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ spec:
6262
imagePullPolicy: "{{ .Values.image.pullPolicy }}"
6363
command: ["chown", "-R", "{{ .Values.containerSecurityContext.runAsUser }}:{{ .Values.containerSecurityContext.fsGroup }}", "/var/lib/weaviate"]
6464
volumeMounts:
65-
- name: weaviate-data
65+
- name: {{ .Values.storage.name }}
6666
mountPath: /var/lib/weaviate
6767
{{- end }}
6868
{{- end }}
@@ -465,7 +465,7 @@ spec:
465465
volumeMounts:
466466
- name: weaviate-config
467467
mountPath: /weaviate-config
468-
- name: weaviate-data
468+
- name: {{ .Values.storage.name }}
469469
mountPath: /var/lib/weaviate
470470
{{- if .Values.runtime_overrides.enabled }}
471471
- name: weaviate-runtime-overrides
@@ -567,7 +567,7 @@ spec:
567567

568568
volumeClaimTemplates:
569569
- metadata:
570-
name: weaviate-data
570+
name: {{ .Values.storage.name }}
571571
labels:
572572
app.kubernetes.io/name: weaviate
573573
app.kubernetes.io/managed-by: {{ .Release.Service }}

weaviate/values.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,10 @@ serviceAccountName:
118118
# See https://github.com/weaviate/weaviate-helm/issues/175 for details.
119119
clusterDomain: cluster.local.
120120

121-
# The Persistent Volume Claim settings for Weaviate. If there's a
122-
# storage.fullnameOverride field set, then the default pvc will not be
123-
# created, instead the one defined in fullnameOverride will be used
121+
# The Persistent Volume Claim settings for Weaviate. The given name will be used as the
122+
# prefix for the volumes (e.g. first replica will use {{ .Values.storage.name }}-weaviate-0)
124123
storage:
124+
name: "weaviate-data"
125125
size: 32Gi
126126
storageClassName: ""
127127

0 commit comments

Comments
 (0)