github.com/qsis/helm@v3.0.0-beta.3+incompatible/pkg/lint/rules/testdata/albatross/templates/_helpers.tpl (about)

     1  {{/* vim: set filetype=mustache: */}}
     2  {{/*
     3  Expand the name of the chart.
     4  */}}
     5  {{define "name"}}{{default "nginx" .Values.nameOverride | trunc 63 | trimSuffix "-" }}{{end}}
     6  
     7  {{/*
     8  Create a default fully qualified app name.
     9  
    10  We truncate at 63 chars because some Kubernetes name fields are limited to this
    11  (by the DNS naming spec).
    12  */}}
    13  {{define "fullname"}}
    14  {{- $name := default "nginx" .Values.nameOverride -}}
    15  {{printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
    16  {{end}}