Skip to content

Commit

Permalink
Merge pull request #3156 from uselagoon/db_cronjobs
Browse files Browse the repository at this point in the history
fix cronjob templates
  • Loading branch information
tobybellwood authored Jun 4, 2022
2 parents 3725043 + 4f4f629 commit 000148b
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
labels:
{{- include "elasticsearch.labels" $ | nindent 4 }}
annotations:
{{- include "elasticsearch.annotations" . | nindent 4 }}
{{- include "elasticsearch.annotations" $ | nindent 4 }}
spec:
schedule: {{ $cronjobConfig.schedule | quote }}
concurrencyPolicy: Forbid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
labels:
{{- include "kibana.labels" $ | nindent 4 }}
annotations:
{{- include "kibana.annotations" . | nindent 4 }}
{{- include "kibana.annotations" $ | nindent 4 }}
spec:
schedule: {{ $cronjobConfig.schedule | quote }}
concurrencyPolicy: Forbid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ spec:
priorityClassName: {{ include "mariadb-single.lagoonPriority" $ }}
enableServiceLinks: false
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 12 }}
{{- toYaml $.Values.podSecurityContext | nindent 12 }}
volumes:
- name: {{ include "mariadb-single.fullname" $ }}
persistentVolumeClaim:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ spec:
priorityClassName: {{ include "mongodb-single.lagoonPriority" $ }}
enableServiceLinks: false
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 12 }}
{{- toYaml $.Values.podSecurityContext | nindent 12 }}
volumes:
- name: {{ include "mongodb-single.fullname" $ }}
persistentVolumeClaim:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
labels:
{{- include "nginx.labels" $ | nindent 4 }}
annotations:
{{- include "nginx.annotations" . | nindent 4 }}
{{- include "nginx.annotations" $ | nindent 4 }}
spec:
schedule: {{ $cronjobConfig.schedule | quote }}
concurrencyPolicy: Forbid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
labels:
{{- include "node.labels" $ | nindent 4 }}
annotations:
{{- include "node.annotations" . | nindent 4 }}
{{- include "node.annotations" $ | nindent 4 }}
spec:
schedule: {{ $cronjobConfig.schedule | quote }}
concurrencyPolicy: Forbid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ spec:
priorityClassName: {{ include "postgres-single.lagoonPriority" $ }}
enableServiceLinks: false
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 12 }}
{{- toYaml $.Values.podSecurityContext | nindent 12 }}
volumes:
- name: {{ include "postgres-single.fullname" $ }}
persistentVolumeClaim:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
labels:
{{- include "python.labels" $ | nindent 4 }}
annotations:
{{- include "python.annotations" . | nindent 4 }}
{{- include "python.annotations" $ | nindent 4 }}
spec:
schedule: {{ $cronjobConfig.schedule | quote }}
concurrencyPolicy: Forbid
Expand All @@ -33,7 +33,8 @@ spec:
imagePullSecrets:
{{- toYaml . | nindent 12 }}
{{- end }}
priorityClassName: {{ include "python.lagoonPriority" . }}
priorityClassName:
{{- include "python.lagoonPriority" $ | nindent 12 }}
enableServiceLinks: false
securityContext:
{{- toYaml $.Values.podSecurityContext | nindent 12 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
labels:
{{- include "rabbitmq.labels" $ | nindent 4 }}
annotations:
{{- include "rabbitmq.annotations" . | nindent 4 }}
{{- include "rabbitmq.annotations" $ | nindent 4 }}
spec:
schedule: {{ $cronjobConfig.schedule | quote }}
concurrencyPolicy: Forbid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
labels:
{{- include "solr.labels" $ | nindent 4 }}
annotations:
{{- include "solr.annotations" . | nindent 4 }}
{{- include "solr.annotations" $ | nindent 4 }}
spec:
schedule: {{ $cronjobConfig.schedule | quote }}
concurrencyPolicy: Forbid
Expand Down Expand Up @@ -36,7 +36,7 @@ spec:
priorityClassName: {{ include "solr.lagoonPriority" $ }}
enableServiceLinks: false
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 12 }}
{{- toYaml $.Values.podSecurityContext | nindent 12 }}
containers:
- image: {{ $.Values.image | quote }}
name: cronjob-{{ $.Release.Name }}-{{ $cronjobName }}
Expand Down

0 comments on commit 000148b

Please sign in to comment.