istanbul-tools/benchmark/kubernetes/validator/templates/_helpers.tpl

24 lines
612 B
Smarty
Executable File

{{/* vim: set filetype=mustache: */}}
{{/*
Expand the name of the chart.
*/}}
{{- define "name" -}}
{{- default .Chart.Name .Values.ethereum.nodekey.hex | trunc 60 | trimSuffix "-" -}}
{{- end -}}
{{/*
Create a default fully qualified app name.
We truncate at 60 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
*/}}
{{- define "fullname" -}}
{{- $name := .Values.nameOverride -}}
{{- printf "%s-%v" .Chart.Name $name | trunc 60 | trimSuffix "-" -}}
{{- end -}}
{{/*
Deployment environment
*/}}
{{- define "environment" -}}
{{- default .Release.Namespace -}}
{{- end -}}