apiVersion: batch/v1
kind: Job
metadata:
  name: cache-deployer-job
  labels:
    app: cache-deployer
spec:
  template:
    metadata:
      labels:
        app: cache-deployer
    spec:
      containers:
      - name: main
        image: gcr.io/ml-pipeline-test/cache-deployer:latest
        imagePullPolicy: Always
        env:
          - name: NAMESPACE_TO_WATCH
            valueFrom:
              fieldRef:
                fieldPath: metadata.namespace
      serviceAccountName: kubeflow-pipelines-cache-deployer-sa
      restartPolicy: OnFailure
      