Skip to content

Commit

Permalink
Adding labels support | generic 1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dbpolito committed Oct 25, 2023
1 parent 1c9cd2e commit f920901
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 7 deletions.
2 changes: 1 addition & 1 deletion charts/generic/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: v2
name: generic
description: Generic Chart
version: 1.5.2
version: 1.6.0
6 changes: 5 additions & 1 deletion charts/generic/templates/cronjobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ metadata:
{{- else }}
name: "{{ $fullName }}-{{ $cronjob.name | default $cronjobName }}"
{{- end }}
labels: {{ include "generic.labels" $ | nindent 4 }}
labels:
{{ include "generic.labels" $ | indent 4 }}
{{- with .labels }}
{{ toYaml . | indent 4 }}
{{- end }}
{{- with .annotations }}
annotations: {{ toYaml . | nindent 4 }}
{{- end }}
Expand Down
6 changes: 5 additions & 1 deletion charts/generic/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ $fullName }}
labels: {{ include "generic.labels" . | nindent 4 }}
labels:
{{ include "generic.labels" $ | indent 4 }}
{{- with .labels }}
{{ toYaml . | indent 4 }}
{{- end }}
{{- with .annotations }}
annotations: {{ toYaml . | nindent 4 }}
{{- end }}
Expand Down
12 changes: 8 additions & 4 deletions charts/generic/templates/jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,15 @@ metadata:
{{- else }}
name: "{{ $fullName }}-{{ $job.name | default $jobName }}"
{{- end }}
labels: {{ include "generic.labels" $ | nindent 4 }}
labels:
{{ include "generic.labels" $ | indent 4 }}
{{- with .labels }}
{{ toYaml . | indent 4 }}
{{- end }}
annotations:
{{- with .annotations }}
{{ toYaml . | indent 4 }}
{{- end }}
{{- with .annotations }}
{{ toYaml . | indent 4 }}
{{- end }}
{{- with $job.hook }}
"helm.sh/hook": {{ . }}
{{- end }}
Expand Down

0 comments on commit f920901

Please sign in to comment.