Commit e82f8560 authored by Naseem's avatar Naseem Committed by Naseem

Make the use of existingClaim along with enterprise impossible.

In enterprise mode, the user can scale beyond 1 replica and therefore should in no case use existingClaim. The if statements around the data volume/volumeClaimTemplate has been adjusted as such. Signed-off-by: 's avatarNaseem <naseem@transit.app>
parent 2774a172
......@@ -126,12 +126,14 @@ spec:
- name: {{ include "influxdb.fullname" . }}-data
emptyDir: {}
{{- end }}
{{- if and .Values.persistence.enabled .Values.persistence.existingClaim }}
# Cannot use existing claim in enterprise mode
{{- if and .Values.persistence.enabled .Values.persistence.existingClaim (not .Values.enterprise.enabled) }}
- name: {{ include "influxdb.fullname" . }}-data
persistentVolumeClaim:
claimName: {{ .Values.persistence.existingClaim }}
{{- end }}
{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) }}
# Must use volume claim template in enterprise mode
{{- if and .Values.persistence.enabled (or (not .Values.persistence.existingClaim) .Values.enterprise.enabled) }}
volumeClaimTemplates:
- metadata:
name: {{ include "influxdb.fullname" . }}-data
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment