Skip to content

Commit

Permalink
fix(query): fix unknown field "volumeClaimTemplates" when value.cache…
Browse files Browse the repository at this point in the history
….enabled is true (#75)
  • Loading branch information
cadl authored Aug 14, 2023
1 parent 207f725 commit ec440c6
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions charts/databend-query/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,17 +114,6 @@ spec:
- name: config
configMap:
name: {{ include "databend-query.fullname" .}}
{{- if .Values.cache.enabled }}
volumeClaimTemplates:
- metadata:
name: cache
spec:
accessModes: [ "ReadWriteOnce" ]
storageClassName: {{ .Values.cache.storageClass | quote }}
resources:
requests:
storage: {{ .Values.cache.maxBytes | quote }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand All @@ -137,3 +126,14 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.cache.enabled }}
volumeClaimTemplates:
- metadata:
name: cache
spec:
accessModes: [ "ReadWriteOnce" ]
storageClassName: {{ .Values.cache.storageClass | quote }}
resources:
requests:
storage: {{ .Values.cache.maxBytes | quote }}
{{- end }}

0 comments on commit ec440c6

Please sign in to comment.