Commit f9afa38b authored by Jonathan Chauncey's avatar Jonathan Chauncey Committed by Michael Goodness

feat(stable/influx): Add the ability to specify already existing pvc (#777)

* feat(stable/influx): Add the ability to specify already existing pvc * Adds a persistence.useExisting property which allows a user to use an existing pvc * Adds persistence.name property which is the name of the existing pvc * Version bump
parent 62c89e3b
name: influxdb
version: 0.3.0
version: 0.4.0
description: Scalable datastore for metrics, events, and real-time analytics.
keywords:
- influxdb
......
......@@ -63,8 +63,13 @@ spec:
volumes:
- name: data
{{- if .Values.persistence.enabled }}
{{- if .Values.persistence.useExisting }}
persistentVolumeClaim:
claimName: {{ .Values.persistence.name }}
{{- else }}
persistentVolumeClaim:
claimName: {{ template "fullname" . }}
{{- end }}
{{- else }}
emptyDir: {}
{{- end }}
......
{{- if .Values.persistence.enabled }}
{{- if and (.Values.persistence.enabled) (not .Values.persistence.useExisting) }}
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
......
......@@ -16,6 +16,10 @@ service:
##
persistence:
enabled: false
## If true will use an existing PVC instead of creating one
# useExisting: false
## Name of existing PVC to be used in the influx deployment
# name:
## If defined, volume.beta.kubernetes.io/storage-class: <storageClass>
## Default: volume.alpha.kubernetes.io/storage-class: default
##
......
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