From 236ba2bf5442bffbdbcaaf0cd01dd82c72793cc0 Mon Sep 17 00:00:00 2001 From: Andrey Semerun Date: Wed, 21 Jul 2021 14:52:38 +0300 Subject: [PATCH] [bitnami/mongodb] Fix a bug that prevents install chart in the `replicaset` mode (#7006) --- bitnami/mongodb/Chart.yaml | 2 +- bitnami/mongodb/templates/replicaset/svc.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bitnami/mongodb/Chart.yaml b/bitnami/mongodb/Chart.yaml index 346ed43ac..1e18d37d3 100644 --- a/bitnami/mongodb/Chart.yaml +++ b/bitnami/mongodb/Chart.yaml @@ -26,4 +26,4 @@ name: mongodb sources: - https://github.com/bitnami/bitnami-docker-mongodb - https://mongodb.org -version: 10.23.1 \ No newline at end of file +version: 10.23.2 diff --git a/bitnami/mongodb/templates/replicaset/svc.yaml b/bitnami/mongodb/templates/replicaset/svc.yaml index 23c225bc9..7b357e9b2 100644 --- a/bitnami/mongodb/templates/replicaset/svc.yaml +++ b/bitnami/mongodb/templates/replicaset/svc.yaml @@ -15,8 +15,8 @@ metadata: namespace: {{ include "mongodb.namespace" $ }} labels: {{- include "common.labels.standard" $ | nindent 4 }} app.kubernetes.io/component: mongodb - {{- if .Values.commonLabels }} - {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} + {{- if $root.Values.commonLabels }} + {{- include "common.tplvalues.render" ( dict "value" $root.Values.commonLabels "context" $ ) | nindent 4 }} {{- end }} {{- if $root.Values.service.annotations }} annotations: {{- include "common.tplvalues.render" (dict "value" $root.Values.service.annotations "context" $) | nindent 4 }}