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 name: influxdb
version: 0.3.0 version: 0.4.0
description: Scalable datastore for metrics, events, and real-time analytics. description: Scalable datastore for metrics, events, and real-time analytics.
keywords: keywords:
- influxdb - influxdb
......
...@@ -63,8 +63,13 @@ spec: ...@@ -63,8 +63,13 @@ spec:
volumes: volumes:
- name: data - name: data
{{- if .Values.persistence.enabled }} {{- if .Values.persistence.enabled }}
{{- if .Values.persistence.useExisting }}
persistentVolumeClaim:
claimName: {{ .Values.persistence.name }}
{{- else }}
persistentVolumeClaim: persistentVolumeClaim:
claimName: {{ template "fullname" . }} claimName: {{ template "fullname" . }}
{{- end }}
{{- else }} {{- else }}
emptyDir: {} emptyDir: {}
{{- end }} {{- end }}
......
{{- if .Values.persistence.enabled }} {{- if and (.Values.persistence.enabled) (not .Values.persistence.useExisting) }}
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
apiVersion: v1 apiVersion: v1
metadata: metadata:
......
...@@ -16,6 +16,10 @@ service: ...@@ -16,6 +16,10 @@ service:
## ##
persistence: persistence:
enabled: false 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> ## If defined, volume.beta.kubernetes.io/storage-class: <storageClass>
## Default: volume.alpha.kubernetes.io/storage-class: default ## 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