---
apiVersion: batch/v1beta1
kind: CronJob
metadata:
  labels:
    app: k8s-ns-purger
  name: k8s-ns-purger
spec:
  concurrencyPolicy: Forbid
  failedJobsHistoryLimit: 0
  jobTemplate:
    spec:
      template:
        spec:
          serviceAccountName: k8s-ns-purger
          restartPolicy: Never
          containers:
          - env:
            - name: PURGE_AGE
              value: '8 hour'
            image: supporttools/k8s-ns-purger:BUILD_NUMBER
            imagePullPolicy: IfNotPresent
            name: k8s-ns-purger
  schedule: '0 * * * *'
  successfulJobsHistoryLimit: 3
