helm3 update - changes to get the template rendered (#21630)

* update for helm3

Signed-off-by: Srinivasa Vasu <srinivasan.surprise@gmail.com>

* update chart version

Signed-off-by: Srinivasa Vasu <srinivasan.surprise@gmail.com>

* reset global logic changes;conditional logic updated

Signed-off-by: Srinivasa Vasu <srinivasan.surprise@gmail.com>
This commit is contained in:
Srinivasa Vasu
2020-03-27 07:58:24 -07:00
committed by GitHub
parent ef70d277fc
commit 162ba8a7f7
3 changed files with 11 additions and 7 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
apiVersion: v1
name: mongodb-replicaset
home: https://github.com/mongodb/mongo
version: 3.14.0
version: 3.14.1
appVersion: 3.6
description: NoSQL document-oriented database that stores JSON-like documents with
dynamic schemas, simplifying the integration of data in content-driven applications.
@@ -81,9 +81,13 @@ Create the name for the key secret.
Allow the release namespace to be overridden for multi-namespace deployments in combined charts.
*/}}
{{- define "mongodb-replicaset.namespace" -}}
{{- if and ((hasKey .Values "global") .Values.global.namespaceOverride) -}}
{{- .Values.global.namespaceOverride -}}
{{- if .Values.global -}}
{{- if .Values.global.namespaceOverride -}}
{{- .Values.global.namespaceOverride -}}
{{- else -}}
{{- .Release.Namespace -}}
{{- end -}}
{{- else -}}
{{- .Release.Namespace -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{- end -}}
+2 -2
View File
@@ -3,8 +3,8 @@ nameOverride: ""
fullnameOverride: ""
# Override the deployment namespace
# global:
# namespaceOverride: ""
global:
# namespaceOverride: ""
replicas: 3
port: 27017