Skip to content

Commit

Permalink
Simplified and improved clarity on selector labels attached on chart …
Browse files Browse the repository at this point in the history
…resources
  • Loading branch information
Konstantinos Livieratos authored Oct 17, 2022
1 parent 2138c09 commit c0b79c7
Showing 1 changed file with 1 addition and 6 deletions.
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 c0b79c7

Please sign in to comment.