helm-charts/charts/tempest-pushgateway/templates/cronjob.yaml

38 lines
1021 B
YAML

---
apiVersion: batch/v1beta1
kind: CronJob
metadata:
namespace: {{ .Release.Namespace }}
name: {{ include "tempest-pushgateway.fullname" . }}
labels:
{{- include "tempest-pushgateway.labels" . | indent 4 }}
spec:
schedule: "*/5 * * * *"
concurrencyPolicy: Forbid
jobTemplate:
spec:
backoffLimit: 0
template:
metadata:
labels:
{{- include "tempest-pushgateway.labels" . | indent 12 }}
spec:
restartPolicy: Never
{{- with .Values.hostAliases }}
hostAliases:
{{ toYaml . | indent 12 }}
{{- end }}
containers:
- name: tempest-pushgateway
image: {{ .Values.image }}
envFrom:
- secretRef:
name: {{ include "tempest-pushgateway.fullname" . }}
args:
{{ toYaml .Values.tests | indent 12 }}
tolerations:
- effect: NoSchedule
key: node-role.kubernetes.io/master
nodeSelector:
node-role.kubernetes.io/master: ""