---
  apiVersion: batch/v1
  kind: Job
  metadata:
    name: change_me
    labels:
      app: jobs
    finalizers:
      - foregroundDeletion
  spec:
    template:
      metadata:
        labels:
          app: jobs
          allow-psql: "true"
          allow-kiam: "true"
          allow-http: "true"
      spec:
        securityContext:
          runAsUser: 1000
          fsGroup: 1000
        containers:
        - name: jobs
          image: change_me
          env:
            - name: GENERATE_SAMPLE_INSPECTIONS_JOB_ID
              value: change_me
            - name: PGHOST
              value: change_me
            - name: PGPORT
              value: change_me
            - name: PGDATABASE
              value: change_me
            - name: PGUSER
              value: change_me
            - name: PGPASSWORD
              value: change_me
            - name: PGMINPOOLSIZE
              value: change_me
            - name: PGMAXPOOLSIZE
              value: change_me
            - name: PGSSL
              value: change_me
          args:
            - /bin/sh
            - -c
            - npm run generate-sample-inspections
          resources:
            limits:
              cpu: 50m
              memory: 256Mi
            requests:
              cpu: 50m
              memory: 256Mi
          volumeMounts:
            - mountPath: /opt/app/dft-street-manager-jobs/tmp
              name: tmp
        volumes:
        - name: tmp
          emptyDir: {}
        restartPolicy: Never
