apiVersion: batch/v1
kind: Job
metadata:
  name: csi-driver-image-sanity-test
  namespace: cliapp-system
spec:
  template:
    metadata:
      name: csi-driver-image-sanity-test
    spec:
      serviceAccountName: csi-image-warm-metal
      containers:
        - name: csi-driver-image-sanity-test
          image: local.test/csi-driver-image-test:sanity
          volumeMounts:
            - mountPath: /csi
              name: socket-dir
          securityContext:
            privileged: true
      restartPolicy: Never
      volumes:
        - hostPath:
            path: /var/lib/kubelet/plugins/csi-image.warm-metal.tech
            type: DirectoryOrCreate
          name: socket-dir
  backoffLimit: 0
