Added existing claim support
This commit is contained in:
@@ -51,6 +51,13 @@ spec:
|
||||
secret:
|
||||
defaultMode: 420
|
||||
secretName: bedrock-server
|
||||
{{- if and .Values.config.persistence.enabled .Values.config.persistence.existingClaim }}
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
{{- with .Values.config.persistence.existingClaim }}
|
||||
claimName: {{ tpl . $ }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- with .Values.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
@@ -63,6 +70,7 @@ spec:
|
||||
tolerations:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- if and .Values.config.persistence.enabled (not .Values.config.persistence.existingClaim) }}
|
||||
volumeClaimTemplates:
|
||||
- metadata:
|
||||
name: data
|
||||
@@ -72,3 +80,4 @@ spec:
|
||||
resources:
|
||||
requests:
|
||||
storage: {{ .Values.config.storageSize }}
|
||||
{{- end -}}
|
||||
|
||||
Reference in New Issue
Block a user