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