diff --git a/stable/redmine/Chart.yaml b/stable/redmine/Chart.yaml index 6881e2dd21..ff9eac1c1f 100644 --- a/stable/redmine/Chart.yaml +++ b/stable/redmine/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: redmine -version: 10.0.7 +version: 10.0.8 appVersion: 4.0.4 description: A flexible project management web application. keywords: diff --git a/stable/redmine/README.md b/stable/redmine/README.md index 6dc30ee079..37974a5de4 100644 --- a/stable/redmine/README.md +++ b/stable/redmine/README.md @@ -63,7 +63,9 @@ The following table lists the configurable parameters of the Redmine chart and t | `image.repository` | Redmine image name | `bitnami/redmine` | | `image.tag` | Redmine image tag | `{TAG_NAME}` | | `image.pullPolicy` | Image pull policy | `IfNotPresent` | -| `image.pullSecrets` | Specify docker-registry secret names as an array | `[]` (does not add image pull secrets to deployed pods) | +| `image.pullSecrets` | Specify docker-registry secret names as an array | `[]` (does not add image pull secrets to deployed pods) | +| `nameOverride` | String to partially override redmine.fullname template with a string (will prepend the release name) | `nil` | +| `fullnameOverride` | String to fully override redmine.fullname template with a string | `nil` | | `redmineUsername` | User of the application | `user` | | `redminePassword` | Application password | _random 10 character long alphanumeric string_ | | `redmineEmail` | Admin email | `user@example.com` | diff --git a/stable/redmine/templates/_helpers.tpl b/stable/redmine/templates/_helpers.tpl index e3c2048dc8..eea79fc458 100644 --- a/stable/redmine/templates/_helpers.tpl +++ b/stable/redmine/templates/_helpers.tpl @@ -11,9 +11,17 @@ Create a default fully qualified app name. We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). */}} {{- define "redmine.fullname" -}} +{{- if .Values.fullnameOverride -}} +{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} +{{- else -}} {{- $name := default .Chart.Name .Values.nameOverride -}} +{{- if contains $name .Release.Name -}} +{{- .Release.Name | trunc 63 | trimSuffix "-" -}} +{{- else -}} {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} {{- end -}} +{{- end -}} +{{- end -}} {{/* Create a default fully qualified app name. diff --git a/stable/redmine/values.yaml b/stable/redmine/values.yaml index ef1afaf6e8..304d4928c9 100644 --- a/stable/redmine/values.yaml +++ b/stable/redmine/values.yaml @@ -26,6 +26,14 @@ image: # pullSecrets: # - myRegistryKeySecretName +## String to partially override redmine.fullname template (will maintain the release name) +## +# nameOverride: + +## String to fully override redmine.fullname template +## +# fullnameOverride: + ## User of the application ## ref: https://github.com/bitnami/bitnami-docker-redmine/#environment-variables ##