Skip to content

Commit 61cf969

Browse files
reixdRainer 'rei' Schuth
andauthored
[Cronjobs] improve labels fix (#11)
Co-authored-by: Rainer 'rei' Schuth <rainer.schuth@digital-results-international.com>
1 parent 28161d0 commit 61cf969

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

charts/cronjobs/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: v2
33
name: cronjobs
44
description: A generic helm cronjob chart for kubernetes
55
type: application
6-
version: 1.2.0
6+
version: 1.2.1
77
appVersion: latest
88
home: https://github.com/klicktipp/helm-charts
99
keywords:

charts/cronjobs/templates/_helpers.tpl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
4646
Selector labels
4747
*/}}
4848
{{- define "cronjobs.selectorLabels" -}}
49-
app.kubernetes.io/name: {{ include "cronjobs.name" . }}
5049
app.kubernetes.io/instance: {{ .Release.Name }}
5150
{{- end }}
5251

charts/cronjobs/templates/cronjob.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ metadata:
1414
{{- with $.Values.commonLabels }}
1515
{{- toYaml . | nindent 4 }}
1616
{{- end }}
17+
app.kubernetes.io/name: {{ $chart_name }}-{{ $JOB_NAME_SLUG }}
1718
{{- include "cronjobs.labels" $ | nindent 4 }}
1819
annotations:
1920
{{- if $.commonAnnotations }}
@@ -56,6 +57,7 @@ spec:
5657
{{- toYaml . | nindent 12 }}
5758
{{- end }}
5859
labels:
60+
app.kubernetes.io/name: {{ $chart_name }}-{{ $JOB_NAME_SLUG }}
5961
{{- with $.Values.commonLabels }}
6062
{{- toYaml . | nindent 12 }}
6163
{{- end }}

0 commit comments

Comments
 (0)