--- 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: ""