Skip to content

Commit

Permalink
Merge pull request #4 from koslib/feature/labels-improvement
Browse files Browse the repository at this point in the history
Feature/labels-improvement
  • Loading branch information
koslib authored Oct 17, 2022
2 parents 2138c09 + a7274a4 commit d5daf40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: v2
name: servicetpl
description: A Helm chart for services running on Kubernetes

version: 0.13.0
version: 0.14.0
7 changes: 1 addition & 6 deletions templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
{{/* vim: set filetype=mustache: */}}
{{/*
Expand the name of the chart.
*/}}
{{- define "service_template.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
Create a default fully qualified app name.
Expand Down Expand Up @@ -48,7 +43,7 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
Selector labels
*/}}
{{- define "service_template.selectorLabels" -}}
app.kubernetes.io/name: {{ include "service_template.name" . }}
app.kubernetes.io/name: {{ .Release.Name }}
app.kubernetes.io/instance: {{ .Release.Name }}
app: {{ .Release.Name }}
{{- end }}
Expand Down

0 comments on commit d5daf40

Please sign in to comment.