mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/metabase] Support fullnameOverride in _helpers.tpl (#20579)
* Support fullnameOverride in _helpers.tpl Signed-off-by: Denis Sventitsky <twisteeed.fantasy@gmail.com> * Bump chart version Signed-off-by: Denis Sventitsky <twisteeed.fantasy@gmail.com> * Update README.md with fullnameOverride parameter Signed-off-by: Denis Sventitsky <twisteeed.fantasy@gmail.com>
This commit is contained in:
@@ -2,7 +2,7 @@ apiVersion: v1
|
||||
description: The easy, open source way for everyone in your company to ask questions
|
||||
and learn from data.
|
||||
name: metabase
|
||||
version: 0.10.2
|
||||
version: 0.10.3
|
||||
appVersion: v0.34.0
|
||||
maintainers:
|
||||
- name: pmint93
|
||||
|
||||
@@ -50,6 +50,7 @@ The following table lists the configurable parameters of the Metabase chart and
|
||||
| image.repository | controller container image repository | metabase/metabase |
|
||||
| image.tag | controller container image tag | v0.34.0 |
|
||||
| image.pullPolicy | controller container image pull policy | IfNotPresent |
|
||||
| fullnameOverride | String to fully override metabase.fullname template | null |
|
||||
| listen.host | Listening on a specific network host | 0.0.0.0 |
|
||||
| listen.port | Listening on a specific network port | 3000 |
|
||||
| ssl.enabled | Enable SSL to run over HTTPS | false |
|
||||
|
||||
@@ -9,11 +9,20 @@ Expand the name of the chart.
|
||||
{{/*
|
||||
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).
|
||||
If release name contains chart name it will be used as a full name.
|
||||
*/}}
|
||||
{{- define "metabase.fullname" -}}
|
||||
{{- if .Values.fullnameOverride -}}
|
||||
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
|
||||
{{- else -}}
|
||||
{{- $name := default .Chart.Name .Values.nameOverride -}}
|
||||
{{- if contains $name .Release.Name -}}
|
||||
{{- printf .Release.Name | trunc 63 | trimSuffix "-" -}}
|
||||
{{- else -}}
|
||||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Return the apiVersion of deployment.
|
||||
|
||||
@@ -10,6 +10,10 @@ image:
|
||||
tag: v0.34.0
|
||||
pullPolicy: IfNotPresent
|
||||
|
||||
## String to fully override metabase.fullname template
|
||||
##
|
||||
# fullnameOverride:
|
||||
|
||||
# Config Jetty web server
|
||||
listen:
|
||||
host: "0.0.0.0"
|
||||
|
||||
Reference in New Issue
Block a user