github.com/smartcontractkit/chainlink-testing-framework/libs@v0.0.0-20240227141906-ec710b4eb1a3/charts/qa-mock-adapter/templates/helpers.tpl (about)

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