Commit 3965be67 authored by Ferenc-'s avatar Ferenc- Committed by k8s-ci-robot

[stable/influxdb] Add fullnameOverride (#6224)

* Similar to other charts, this allows configurable name overrides so 'cleaner' resource names can be achieved, which are independent from the wanted release names. * This is a must have if you want to integrate influxdb with other charts, where a resource name can't be templated and has to be fixed in the values.yaml, and you have to deploy that in multiple instances on the same k8s cluster. For example if you have an integration chart and the grafana data source URI points to a fixed influxdb service name, then without this patch, it can't be deployed in multiple instances, since the service name depends on the release name, which has to be unique.
parent 0afc1ca5
name: influxdb
version: 0.9.2
version: 0.9.3
appVersion: 1.4
description: Scalable datastore for metrics, events, and real-time analytics.
keywords:
......
......@@ -11,6 +11,10 @@ Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
*/}}
{{- define "influxdb.fullname" -}}
{{- if .Values.fullnameOverride -}}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}
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