blob: 2343c79e03aed7d366d9d2cc9e056f95f1f5f589 [file] [log] [blame]
Sean Condond7d18342021-10-11 14:25:27 +01001{{/* vim: set filetype=mustache: */}}
2{{/*
3SPDX-FileCopyrightText: 2020-present Open Networking Foundation <info@opennetworking.org>
Sean Condon160ec1d2022-02-08 12:58:25 +00004SPDX-License-Identifier: Apache-2.0
Sean Condond7d18342021-10-11 14:25:27 +01005
6Expand the name of the chart.
7*/}}
8{{- define "aether-roc-websocket.name" -}}
9{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
10{{- end -}}
11
12{{/*
13Create a default fully qualified app name.
14We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
15If release name contains chart name it will be used as a full name.
16*/}}
17{{- define "aether-roc-websocket.fullname" -}}
18{{- if .Values.fullnameOverride -}}
19{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
20{{- else -}}
21{{- $name := default .Chart.Name .Values.nameOverride -}}
22{{- if contains $name .Release.Name -}}
23{{- .Release.Name | trunc 63 | trimSuffix "-" -}}
24{{- else -}}
25{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
26{{- end -}}
27{{- end -}}
28{{- end -}}
29
30{{/*
31Create chart name and version as used by the chart label.
32*/}}
33{{- define "aether-roc-websocket.chart" -}}
34{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
35{{- end -}}
36
37{{/*
38Common labels
39*/}}
40{{- define "aether-roc-websocket.labels" -}}
41helm.sh/chart: {{ include "aether-roc-websocket.chart" . }}
42{{ include "aether-roc-websocket.selectorLabels" . }}
43{{- if .Chart.AppVersion }}
44app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
45{{- end }}
46app.kubernetes.io/managed-by: {{ .Release.Service }}
47{{- end -}}
48
49{{/*
50Selector labels
51*/}}
52{{- define "aether-roc-websocket.selectorLabels" -}}
53app.kubernetes.io/name: {{ include "aether-roc-websocket.name" . }}
54app.kubernetes.io/instance: {{ .Release.Name }}
55{{- end -}}