aboutsummaryrefslogtreecommitdiffstats
path: root/operations/a1-pe-sim-packages/resources/oran-sim-csar/o-ran-simulator/templates/_common.tpl
blob: b46d402b56c217b4e8230ef858dd9579230dd87b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{{/* vim: set filetype=mustache: */}}

{{/*
  Functions here are generated by helm, please don't use them directly
*/}}


{{/*
Expand the name of the chart.
*/}}
{{- define "handover-simulator.common.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}


{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "handover-simulator.common.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
{{- end -}}


{{/*
Common labels
*/}}
{{- define "handover-simulator.common.labels" -}}
app.kubernetes.io/name: {{ include "handover-simulator.common.name" . }}
helm.sh/chart: {{ include "handover-simulator.common.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- if .Values.oran_name }}
oran_name: {{ .Values.oran_name | quote }}
{{- end }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end -}}