# This test is to ensure that if a job supports both create and update events,
# then the create job should be replaced by the update job.
kind: AppInstance
apiVersion: internal.acorn.io/v1
metadata:
  generation: 2
  name: app-name
  namespace: app-namespace
  uid: 1234567890abcdef
spec:
  image: test
status:
  namespace: app-created-namespace
  appImage:
    id: test
  appSpec:
    jobs:
      job:
        events: ["create", "update"]
        image: "only-image"
  appStatus:
    jobs:
      job:
        createEventSucceeded: true
