Use defaults in values.yaml (stable/mongodb) (#5340)

* Use defaults in values.yaml (stable/mongodb)

Also made assignments in `_helpers.tpl` more uniform

* Bump version to 2.0.3
This commit is contained in:
Harry Owen
2018-05-02 04:14:16 -07:00
committed by k8s-ci-robot
parent 4708a8d21e
commit d8bc42df0c
2 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: mongodb
version: 2.0.2
version: 2.0.3
appVersion: 3.7.3
description: NoSQL document-oriented database that stores JSON-like documents with dynamic schemas, simplifying the integration of data in content-driven applications.
keywords:
+4 -3
View File
@@ -19,7 +19,8 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
Return the proper image name
*/}}
{{- define "mongodb.image" -}}
{{- $registryName := default .Values.image.registry "docker.io" -}}
{{- $tag := .Values.image.tag | default "latest" -}}
{{- printf "%s/%s:%s" $registryName .Values.image.repository $tag -}}
{{- $registryName := .Values.image.registry -}}
{{- $repositoryName := .Values.image.repository -}}
{{- $tag := .Values.image.tag -}}
{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}}
{{- end -}}