Commit b6b47692 authored by Amanda Cameron's avatar Amanda Cameron Committed by Adnan Abdulhussein

[stable/kapacitor] Update to the recommended pvc patterns. (#450)

* Convert chart kapacitor to use the recommended pvc patterns * Update pvc.yaml * Update Chart.yaml * Update _helpers.tpl
parent b50b8def
name: kapacitor
version: 0.1.0
version: 0.1.1
description: Chart for Chronograf
keywords:
- kapacitor
......@@ -10,4 +10,4 @@ home: https://www.influxdata.com/time-series-platform/kapacitor/
maintainers:
- name: Jack Zampolin
email: jack@influxdb.com
engine: gotpl
\ No newline at end of file
engine: gotpl
......@@ -3,14 +3,14 @@
Expand the name of the chart.
*/}}
{{- define "name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 24 -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{/*
Create a default fully qualified app name.
We truncate at 24 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
*/}}
{{- define "fullname" -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- printf "%s-%s" .Release.Name $name | trunc 24 -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
......@@ -9,7 +9,11 @@ metadata:
app: {{ template "fullname" . }}
name: {{ template "fullname" . }}
annotations:
volume.alpha.kubernetes.io/storage-class: {{ .Values.persistence.storageClass | quote }}
{{- if .Values.persistence.storageClass }}
volume.beta.kubernetes.io/storage-class: {{ .Values.persistence.storageClass | quote }}
{{- else }}
volume.alpha.kubernetes.io/storage-class: default
{{- end }}
spec:
accessModes:
- {{ .Values.persistence.accessMode | quote }}
......
......@@ -17,7 +17,10 @@ service:
##
persistence:
enabled: false
storageClass: generic
## If defined, volume.beta.kubernetes.io/storage-class: <storageClass>
## Default: volume.alpha.kubernetes.io/storage-class: default
##
# storageClass:
accessMode: ReadWriteOnce
size: 8Gi
......
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