github.com/replicatedcom/ship@v0.50.0/integration/init/istio-1.0.3/expected/.ship/upstream/charts/certmanager/templates/_helpers.tpl (about)

     1  {{/* vim: set filetype=mustache: */}}
     2  {{/*
     3  Expand the name of the chart.
     4  */}}
     5  {{- define "certmanager.name" -}}
     6  {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
     7  {{- end -}}
     8  
     9  {{/*
    10  Create a default fully qualified app name.
    11  We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
    12  */}}
    13  {{- define "certmanager.fullname" -}}
    14  {{- $name := default .Chart.Name .Values.nameOverride -}}
    15  {{- $fullname := printf "%s-%s" $name .Release.Name -}}
    16  {{- default $fullname .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
    17  {{- end -}}
    18  
    19  {{/*
    20  Create chart name and version as used by the chart label.
    21  */}}
    22  {{- define "certmanager.chart" -}}
    23  {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
    24  {{- end -}}