mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-17 18:39:13 +02:00
Summary of changes: * Output any error from Mkdir in `helmfile template` * Add failing test for .Release.Name interpolation * Add golden files for testing * Parse resources with kustomize to compare them structure by structure * Decode resources into plain maps The RNode type from kustomize uses yaml.Node under the hood, which carries extra information like line numbers, which become noisy when comparing with deep.Equal.
17 lines
528 B
Smarty
17 lines
528 B
Smarty
{{/* vim: set filetype=mustache: */}}
|
|
{{/*
|
|
Expand the name of the chart.
|
|
*/}}
|
|
{{- define "helmx.name" -}}
|
|
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
|
|
{{- end -}}
|
|
|
|
{{/*
|
|
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 "helmx.fullname" -}}
|
|
{{- $name := default .Chart.Name .Values.nameOverride -}}
|
|
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
|
|
{{- end -}}
|