Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Commit

Permalink
[stable/docker-registry] Improve full name definition (#6831)
Browse files Browse the repository at this point in the history
* Improve docker-registry full name definition.

* Bump chart version.

* Bump chart version.
  • Loading branch information
Víctor Díaz authored and k8s-ci-robot committed Aug 16, 2018
1 parent 9ae8a0a commit 7d484fd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/docker-registry/Chart.yaml
@@ -1,7 +1,7 @@
apiVersion: v1
description: A Helm chart for Docker Registry
name: docker-registry
version: 1.5.1
version: 1.5.2
appVersion: 2.6.2
home: https://hub.docker.com/_/registry/
icon: https://hub.docker.com/public/images/logos/mini-logo.svg
Expand Down
8 changes: 8 additions & 0 deletions stable/docker-registry/templates/_helpers.tpl
Expand Up @@ -11,6 +11,14 @@ 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 "docker-registry.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 -}}

0 comments on commit 7d484fd

Please sign in to comment.