Skip to content

Commit

Permalink
Merge pull request #27 from patrick-vares-stash/26-fix-podAnnotations
Browse files Browse the repository at this point in the history
Fix for #26: Added jobAnnotations and fixed podAnnotations
  • Loading branch information
i5o authored Mar 12, 2024
2 parents e797f1b + ccd7650 commit 877e932
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 6 additions & 1 deletion charts/graph-kubernetes/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ spec:
schedule: "{{ .Values.cronjob.schedule }}"
jobTemplate:
metadata:
{{- with .Values.podAnnotations }}
{{- with .Values.jobAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
Expand All @@ -107,6 +107,11 @@ spec:
spec:
template:
spec:
{{- with .Values.podAnnotations }}
metadata:
annotations:
{{- toYaml . | nindent 14 }}
{{- end }}
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 12 }}
Expand Down
5 changes: 5 additions & 0 deletions charts/graph-kubernetes/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ resources:
######### Scheduling ###########
################################

### Job Annotations
## Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
##
jobAnnotations: {}

### Pod Annotations
## Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
##
Expand Down

0 comments on commit 877e932

Please sign in to comment.