mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
fix(stable/minio): enlarge truncate to 63 and add trimSuffix (#480)
* fix(minio): enlarge truncate to 63 and add trimSuffix * Remove random 's' in helpers
This commit is contained in:
committed by
Lachlan Evenson
parent
bb72e643f2
commit
25b475f761
@@ -1,7 +1,7 @@
|
||||
apiVersion: v1
|
||||
description: A Minio Helm chart for Kubernetes
|
||||
name: minio
|
||||
version: 0.0.2
|
||||
version: 0.0.3
|
||||
keywords:
|
||||
- storage
|
||||
- object-storage
|
||||
|
||||
@@ -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 -}}
|
||||
{{- end -}}s
|
||||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
|
||||
{{- end -}}
|
||||
|
||||
Reference in New Issue
Block a user