diff --git a/stable/dokuwiki/Chart.yaml b/stable/dokuwiki/Chart.yaml index acee323067..9e5b6de85b 100644 --- a/stable/dokuwiki/Chart.yaml +++ b/stable/dokuwiki/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: dokuwiki -version: 4.3.4 +version: 5.0.0 appVersion: 0.20180422.201901061035 description: DokuWiki is a standards-compliant, simple to use wiki optimized for creating documentation. It is targeted at developer teams, workgroups, and small companies. diff --git a/stable/dokuwiki/README.md b/stable/dokuwiki/README.md index f33aad8444..e9c1f100ad 100644 --- a/stable/dokuwiki/README.md +++ b/stable/dokuwiki/README.md @@ -54,6 +54,8 @@ The following table lists the configurable parameters of the DokuWiki chart and | `image.tag` | DokuWiki image tag | `{TAG_NAME}` | | `image.pullPolicy` | Image pull policy | `Always` | | `image.pullSecrets` | Specify docker-registry secret names as an array | `[]` (does not add image pull secrets to deployed pods) | +| `nameOverride` | String to partially override dokuwiki.fullname template with a string (will prepend the release name) | `nil` | +| `fullnameOverride` | String to fully override dokuwiki.fullname template with a string | `nil` | | `dokuwikiUsername` | User of the application | `user` | | `dokuwikiFullName` | User's full name | `User Name` | | `dokuwikiPassword` | Application password | _random 10 character alphanumeric string_ | diff --git a/stable/dokuwiki/templates/_helpers.tpl b/stable/dokuwiki/templates/_helpers.tpl index 836064c9a9..3b7eab4db0 100644 --- a/stable/dokuwiki/templates/_helpers.tpl +++ b/stable/dokuwiki/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 "dokuwiki.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 chart name and version as used by the chart label. diff --git a/stable/dokuwiki/values.yaml b/stable/dokuwiki/values.yaml index d12c600908..0a23a421d9 100644 --- a/stable/dokuwiki/values.yaml +++ b/stable/dokuwiki/values.yaml @@ -26,6 +26,14 @@ image: # pullSecrets: # - myRegistryKeySecretName +## String to partially override dokuwiki.fullname template (will maintain the release name) +## +# nameOverride: + +## String to fully override dokuwiki.fullname template +## +# fullnameOverride: + ## User of the application ## ref: https://github.com/bitnami/bitnami-docker-dokuwiki#environment-variables ##