Skip to content

Commit

Permalink
Do not use 'master' in release name when replication is not enabled (h…
Browse files Browse the repository at this point in the history
…elm#5713)

* Do not use 'master' in release name when replication is not enabled

* Do not use 'master' in release name when replication is not enabled
  • Loading branch information
beltran-rubo authored and k8s-ci-robot committed May 23, 2018
1 parent c6cab1e commit f1711c2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/mariadb/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: mariadb
version: 4.0.0
version: 4.0.1
appVersion: 10.1.32
description: Fast, reliable, scalable, and easy to use open-source relational database system. MariaDB Server is intended for mission-critical, heavy-load production systems as well as for embedding into mass-deployed software. Highly available MariaDB cluster.
keywords:
Expand Down
5 changes: 5 additions & 0 deletions stable/mariadb/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,13 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
{{- end -}}

{{- define "master.fullname" -}}
{{- if .Values.replication.enabled -}}
{{- printf "%s-%s" .Release.Name "mariadb-master" | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- printf "%s-%s" .Release.Name "mariadb" | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}


{{- define "slave.fullname" -}}
{{- printf "%s-%s" .Release.Name "mariadb-slave" | trunc 63 | trimSuffix "-" -}}
Expand Down

0 comments on commit f1711c2

Please sign in to comment.