kind: AppInstance
apiVersion: internal.acorn.io/v1
metadata:
  name: app-name
  namespace: app-namespace
  uid: 1234567890abcdef
spec:
  image: test
  computeClass:
    "": sample-compute-class-01
    oneimage: sample-compute-class
status:
  observedGeneration: 1
  scheduling:
    oneimage:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
            - matchExpressions:
              - key: foo
                operator: In
                values:
                - bar
      requirements:
        limits:
          memory: 2Mi
        requests:
          cpu: 1m
          memory: 2Mi
    twoimage:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
            - matchExpressions:
              - key: foo
                operator: In
                values:
                - bar
      requirements:
        limits:
          memory: 1Mi
        requests:
          cpu: 1m
          memory: 1Mi
  defaults:
    memory:
      "": 0
      oneimage: 2097152 # 2Mi
      twoimage: 1048576 # 1Mi
  namespace: app-created-namespace
  appImage:
    id: test
  appSpec:
    containers:
      oneimage:
        ports:
        - port: 80
          targetPort: 81
          protocol: http
        image: "image-name"
        build:
          dockerfile: "Dockerfile"
          context: "."
      twoimage:
        ports:
        - port: 80
          targetPort: 81
          protocol: http
        image: "image-name"
        build:
          dockerfile: "Dockerfile"
          context: "."

  conditions:
    - type: scheduling
      reason: Success
      status: "True"
      success: true
