Helm charts repository for various utiltiies
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.0 KiB

---
apiVersion: batch/v1beta1
kind: CronJob
metadata:
namespace: {{ .Release.Namespace }}
name: {{ include "tempest-pushgateway.fullname" . }}
labels:
{{- include "tempest-pushgateway.labels" . | indent 4 }}
spec:
schedule: "*/5 * * * *"
startingDeadlineSeconds: 1800
concurrencyPolicy: Replace
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: ""