Commit 93bd63d0 authored by Jonathan Chauncey's avatar Jonathan Chauncey Committed by Adnan Abdulhussein

fix(influxdb): Allow for overriding the pvc name (#914)

* Bumps version to 0.4.1 * Allows a user to specify a name for the pvc. Otherwise one will be * generated using the chart name and the release.
parent f9afa38b
name: influxdb
version: 0.4.0
version: 0.4.1
description: Scalable datastore for metrics, events, and real-time analytics.
keywords:
- influxdb
......
......@@ -63,7 +63,7 @@ spec:
volumes:
- name: data
{{- if .Values.persistence.enabled }}
{{- if .Values.persistence.useExisting }}
{{- if not (empty .Values.persistence.name) }}
persistentVolumeClaim:
claimName: {{ .Values.persistence.name }}
{{- else }}
......
......@@ -2,9 +2,9 @@
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: {{ template "fullname" . }}
name: "{{- if not (empty .Values.persistence.name) }}{{ .Values.persistence.name }}{{- else }}{{ template "fullname" . }}{{- end }}"
labels:
app: {{ template "fullname" . }}
app: "{{- if not (empty .Values.persistence.name) }}{{ .Values.persistence.name }}{{- else }}{{ template "fullname" . }}{{- end }}"
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
......
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