From c471a59057cbc827ed35ec00a7c2a0e0498b2732 Mon Sep 17 00:00:00 2001 From: Caio Henrique Aviz de Souza Date: Tue, 7 Jul 2020 03:02:29 -0300 Subject: [PATCH] Fix Mongodb helpers sintax (#3041) --- bitnami/mongodb/Chart.yaml | 2 +- bitnami/mongodb/templates/_helpers.tpl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bitnami/mongodb/Chart.yaml b/bitnami/mongodb/Chart.yaml index 42b77178c..82a440ad2 100644 --- a/bitnami/mongodb/Chart.yaml +++ b/bitnami/mongodb/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: mongodb -version: 8.0.5 +version: 8.0.6 appVersion: 4.2.8 description: NoSQL document-oriented database that stores JSON-like documents with dynamic schemas, simplifying the integration of data in content-driven applications. keywords: diff --git a/bitnami/mongodb/templates/_helpers.tpl b/bitnami/mongodb/templates/_helpers.tpl index 54dbe65e2..e59dfb5a6 100644 --- a/bitnami/mongodb/templates/_helpers.tpl +++ b/bitnami/mongodb/templates/_helpers.tpl @@ -224,7 +224,7 @@ Validate values of MongoDB - number of replicas must be the same than LoadBalanc {{- define "mongodb.validateValues.loadBalancerIPsListLength" -}} {{- $replicaCount := int .Values.replicaCount }} {{- $loadBalancerListLength := len .Values.externalAccess.service.loadBalancerIPs }} -{{- if and (eq .Values.architecture "replicaset") .Values.externalAccess.enabled (not .Values.externalAccess.autoDiscovery.enabled ) (eq .Values.externalAccess.service.type "LoadBalancer") (not (eq $replicaCount $loadBalancerListLength )) -}} +{{- if and (eq .Values.architecture "replicaset") .Values.externalAccess.enabled (not .Values.externalAccess.autoDiscovery.enabled ) (eq .Values.externalAccess.service.type "LoadBalancer") (not (eq $replicaCount $loadBalancerListLength )) -}} mongodb: .Values.externalAccess.service.loadBalancerIPs Number of replicas and loadBalancerIPs array length must be the same. {{- end -}} @@ -236,7 +236,7 @@ Validate values of MongoDB - number of replicas must be the same than NodePort l {{- define "mongodb.validateValues.nodePortListLength" -}} {{- $replicaCount := int .Values.replicaCount }} {{- $nodePortListLength := len .Values.externalAccess.service.nodePorts }} -{{- if and (eq .Values.architecture "replicaset") .Values.externalAccess.enabled (eq .Values.externalAccess.service.type "NodePort") (not (eq $replicaCount $nodePortListLength )) -}} +{{- if and (eq .Values.architecture "replicaset") .Values.externalAccess.enabled (eq .Values.externalAccess.service.type "NodePort") (not (eq $replicaCount $nodePortListLength )) -}} mongodb: .Values.externalAccess.service.nodePorts Number of replicas and nodePorts array length must be the same. {{- end -}}