From 5e4b55e6624bb55818d57a1a48c72cb6656fac5c Mon Sep 17 00:00:00 2001
From: "georgi.todorov" <georgi.todorov@optimal-industries.com>
Date: Thu, 19 Jan 2023 15:17:18 +0200
Subject: [PATCH] Update chart

---
 templates/_helpers.tpl             | 8 --------
 templates/mongodb-service.yaml     | 2 +-
 templates/mongodb-statefulset.yaml | 2 +-
 3 files changed, 2 insertions(+), 10 deletions(-)

diff --git a/templates/_helpers.tpl b/templates/_helpers.tpl
index aa9bae6..2502bf6 100644
--- a/templates/_helpers.tpl
+++ b/templates/_helpers.tpl
@@ -29,12 +29,4 @@ Create chart name and version as used by the chart label.
 */}}
 {{- define "mongodb.chart" -}}
 {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
-{{- end -}}
-
-{{- define "mongodb.metricsSecret" -}}
-    {{- if .Values.auth.existingMetricsSecret -}}
-        {{- .Values.auth.existingMetricsSecret -}}
-    {{- else -}}
-        {{- template "mongodb.fullname" . -}}-metrics
-    {{- end -}}
 {{- end -}}
\ No newline at end of file
diff --git a/templates/mongodb-service.yaml b/templates/mongodb-service.yaml
index 5794ebf..80f4cc9 100644
--- a/templates/mongodb-service.yaml
+++ b/templates/mongodb-service.yaml
@@ -2,7 +2,7 @@ apiVersion: v1
 kind: Service
 metadata:
   name: {{ template "mongodb.name" . }}
-  namespace: {{ template "mongodb.name" . }}
+  namespace: {{ .Release.Namespace }}
   labels:
     name: {{ template "mongodb.name" . }}
 spec:
diff --git a/templates/mongodb-statefulset.yaml b/templates/mongodb-statefulset.yaml
index 11b35b0..57f0279 100644
--- a/templates/mongodb-statefulset.yaml
+++ b/templates/mongodb-statefulset.yaml
@@ -2,7 +2,7 @@ apiVersion: apps/v1
 kind: StatefulSet
 metadata:
   name: {{ template "mongodb.name" . }}
-  namespace: {{ template "mongodb.name" . }}
+  namespace: {{ .Release.Namespace }}
 spec:
   replicas: {{ .Values.replicas }}
   selector:
-- 
GitLab