apiVersion: batch/v1
kind: Job
metadata:
  name: tendr-api-schema
  labels:
    app: tendr-api
spec:
  ttlSecondsAfterFinished: 0
  template:
    metadata:
      labels:
        app: tendr-api
    spec:
      restartPolicy: Never
      containers:
        - name: goose
          image: k3d-tendr.registry.localhost:12345/coding-couch/tendr-goose:latest
          envFrom:
            - secretRef:
                name: tendr-api-db-credentials