apiVersion: batch/v1
kind: Job
metadata:
  name: deis-upgrade
  labels:
    heritage: deis
  annotations:
    "helm.sh/hook": post-upgrade
spec:
  template:
    metadata:
      name: deis-upgrade
    spec:
      containers:
      - name: deis-upgrade
        image: quay.io/deis/workflow-upgrade:canary
        imagePullPolicy: Always
      restartPolicy: Never

apiVersion: batch/v1
kind: Job
metadata:
  name: {{ randNumeric 12 | printf "%s-%s" "deis-upgrade"}}
  labels:
    heritage: deis
  annotations:
    "helm.sh/hook": post-upgrade
spec:
  template:
    spec:
      containers:
      - name: deis-upgrade
        image: quay.io/deis/workflow-upgrade:canary
        imagePullPolicy: Always
      restartPolicy: Never

Use a random generated name for upgrade job so it be upgraded multiple times using helm
fix(upgrade): Use a random generated name for upgrade job so it be upgraded multiple times using helm
