cron-email-stats.yaml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. {{- if .Values.cron.emailStats -}}
  2. apiVersion: batch/v1beta1
  3. kind: CronJob
  4. metadata:
  5. name: email-stats
  6. spec:
  7. schedule: {{ .Values.cron.emailStats }}
  8. jobTemplate:
  9. spec:
  10. template:
  11. spec:
  12. containers:
  13. - name: email-stats
  14. image: {{ .Values.image.registry }}/hue:{{ .Values.image.tag }}
  15. imagePullPolicy: {{ .Values.image.pullPolicy }}
  16. args:
  17. - /bin/bash
  18. - -c
  19. - ./build/env/bin/hue send_query_stats
  20. volumeMounts:
  21. - name: config-volume
  22. mountPath: /usr/share/hue/desktop/conf/z-hue.ini
  23. subPath: hue-ini
  24. - name: config-volume-extra
  25. mountPath: /usr/share/hue/desktop/conf/zz-hue.ini
  26. subPath: hue-ini
  27. restartPolicy: OnFailure
  28. volumes:
  29. - name: config-volume
  30. configMap:
  31. name: hue-config
  32. - name: config-volume-extra
  33. configMap:
  34. name: hue-config-extra
  35. {{- end -}}