Skip to content

Commit

Permalink
Merge pull request #156 from den-is/master
Browse files Browse the repository at this point in the history
Ignore duplicate strings in the fullname helper template
  • Loading branch information
hagaibarel committed Dec 28, 2023
2 parents 1919d08 + 56fed54 commit 2ebfb3a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 5 additions & 4 deletions charts/coredns/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: coredns
version: 1.28.2
version: 1.29.0
appVersion: 1.11.1
home: https://coredns.io
icon: https://coredns.io/images/CoreDNS_Colour_Horizontal.png
Expand All @@ -16,9 +16,10 @@ maintainers:
- name: haad
- name: hagaibarel
- name: shubham-cmyk
engine: gotpl
type: application
annotations:
artifacthub.io/changes: |
- kind: fixed
description: add .Release.Namespace in metadata
- kind: changed
description: Ignore duplicate strings in the fullname helper template
- kind: removed
description: Removed deprecated "engine: gotpl" from the Chart.yaml
4 changes: 4 additions & 0 deletions charts/coredns/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
{{- .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 -}}

{{/*
Common labels
Expand Down

0 comments on commit 2ebfb3a

Please sign in to comment.