Skip to content

Commit

Permalink
fix helpers.tpl breaks due to mongodb not enabled
Browse files Browse the repository at this point in the history
Signed-off-by: bingwei-hong-partior <[email protected]>
  • Loading branch information
bingwei-hong-partior committed Nov 25, 2022
1 parent 8be082a commit 4963e14
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/litmus/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: "2.14.0"
description: A Helm chart to install ChaosCenter
name: litmus
version: 2.15.1
version: 2.15.2
kubeVersion: ">=1.16.0-0"
home: https://litmuschaos.io
sources:
Expand Down
2 changes: 1 addition & 1 deletion charts/litmus/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# litmus

![Version: 2.15.1](https://img.shields.io/badge/Version-2.15.1-informational?style=flat-square) ![AppVersion: 2.14.0](https://img.shields.io/badge/AppVersion-2.14.0-informational?style=flat-square)
![Version: 2.15.2](https://img.shields.io/badge/Version-2.15.2-informational?style=flat-square) ![AppVersion: 2.14.0](https://img.shields.io/badge/AppVersion-2.14.0-informational?style=flat-square)

A Helm chart to install ChaosCenter

Expand Down
10 changes: 7 additions & 3 deletions charts/litmus/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,13 @@ Check for existing secret
{{- end -}}

{{- define "litmus-portal.mongodbServiceName" -}}
{{- if not (eq .Values.mongodb.architecture "replicaset") }}
{{- include "mongodb.fullname" .Subcharts.mongodb -}}
{{- if not .Values.mongodb.enabled }}
{{- .Values.adminConfig.DB_SERVER -}}
{{ else }}
{{- include "mongodb.service.nameOverride" .Subcharts.mongodb -}}
{{- if not (eq .Values.mongodb.architecture "replicaset") }}
{{- include "mongodb.fullname" .Subcharts.mongodb -}}
{{ else }}
{{- include "mongodb.service.nameOverride" .Subcharts.mongodb -}}
{{- end -}}
{{- end -}}
{{- end -}}

0 comments on commit 4963e14

Please sign in to comment.