Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix cronjob templates #3156

Merged
merged 6 commits into from
Jun 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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