apiVersion: batch/v1
kind: Job
metadata:
  generateName: storage-version-migration-eventing-
  namespace: knative-eventing
  labels:
    app: "storage-version-migration-eventing"
    app.kubernetes.io/name: knative-eventing
    app.kubernetes.io/component: storage-version-migration-job
    app.kubernetes.io/version: "1.16.4"
  name: storage-version-migration-eventing
spec:
  ttlSecondsAfterFinished: 600
  backoffLimit: 10
  template:
    metadata:
      labels:
        app: "storage-version-migration-eventing"
        app.kubernetes.io/name: knative-eventing
        app.kubernetes.io/component: storage-version-migration-job
        app.kubernetes.io/version: "1.16.4"
        sidecar.istio.io/inject: "false"
      annotations:
        sidecar.istio.io/inject: "false"
    spec:
      serviceAccountName: knative-eventing-post-install-job
      restartPolicy: OnFailure
      containers:
      - name: migrate
        image: gcr.io/knative-releases/knative.dev/pkg/apiextensions/storageversion/cmd/migrate@sha256:c6baaa8b2a882ff9269ebfe14b54dcba29efc060dfafc06971001b89b084667b
        args:
        - "apiserversources.sources.knative.dev"
        - "brokers.eventing.knative.dev"
        - "channels.messaging.knative.dev"
        - "containersources.sources.knative.dev"
        - "eventtypes.eventing.knative.dev"
        - "inmemorychannels.messaging.knative.dev"
        - "parallels.flows.knative.dev"
        - "pingsources.sources.knative.dev"
        - "sequences.flows.knative.dev"
        - "sinkbindings.sources.knative.dev"
        - "subscriptions.messaging.knative.dev"
        - "triggers.eventing.knative.dev"
        - "jobsinks.sinks.knative.dev"
        securityContext:
          allowPrivilegeEscalation: false
          readOnlyRootFilesystem: true
          runAsNonRoot: true
          capabilities:
            drop:
            - ALL
          seccompProfile:
            type: RuntimeDefault
