Skip to content

Commit

Permalink
Fix labels
Browse files Browse the repository at this point in the history
  • Loading branch information
dbpolito committed Oct 25, 2023
1 parent f920901 commit 333d6f8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 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.6.0
version: 1.6.1
2 changes: 1 addition & 1 deletion charts/generic/templates/cronjobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ metadata:
{{- end }}
labels:
{{ include "generic.labels" $ | indent 4 }}
{{- with .labels }}
{{- with $cronjob.labels }}
{{ toYaml . | indent 4 }}
{{- end }}
{{- with .annotations }}
Expand Down
6 changes: 1 addition & 5 deletions charts/generic/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ $fullName }}
labels:
{{ include "generic.labels" $ | indent 4 }}
{{- with .labels }}
{{ toYaml . | indent 4 }}
{{- end }}
labels: {{ include "generic.labels" $ | nindent 4 }}
{{- with .annotations }}
annotations: {{ toYaml . | nindent 4 }}
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion charts/generic/templates/jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ metadata:
{{- end }}
labels:
{{ include "generic.labels" $ | indent 4 }}
{{- with .labels }}
{{- with $job.labels }}
{{ toYaml . | indent 4 }}
{{- end }}
annotations:
Expand Down

0 comments on commit 333d6f8

Please sign in to comment.