From 971e229e22335cf1c0132c9b1f16bbb1478e4c6d Mon Sep 17 00:00:00 2001 From: dvirlabs Date: Wed, 25 Mar 2026 02:03:09 +0200 Subject: [PATCH] Update oramap to work with mongo --- charts/oramap-chart/templates/_helpers.tpl | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/charts/oramap-chart/templates/_helpers.tpl b/charts/oramap-chart/templates/_helpers.tpl index 1767bb5..0bb20ef 100644 --- a/charts/oramap-chart/templates/_helpers.tpl +++ b/charts/oramap-chart/templates/_helpers.tpl @@ -8,4 +8,24 @@ {{- define "oramap.chart" -}} {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} +{{- end }} + +{{/* +Common labels +*/}} +{{- define "oramap.labels" -}} +helm.sh/chart: {{ include "oramap.chart" . }} +{{ include "oramap.selectorLabels" . }} +{{- if .Chart.AppVersion }} +app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} +{{- end }} +app.kubernetes.io/managed-by: {{ .Release.Service }} +{{- end }} + +{{/* +Selector labels +*/}} +{{- define "oramap.selectorLabels" -}} +app.kubernetes.io/name: {{ include "oramap.name" . }} +app.kubernetes.io/instance: {{ .Release.Name }} {{- end }} \ No newline at end of file