kind: AppInstance
apiVersion: internal.acorn.io/v1
metadata:
  name: app-name
  namespace: app-namespace
  uid: 1234567890abcdef
spec:
  image: test
  permissions:
  - serviceName: oneimage
    rules:
    - verbs:
      - create
      apiGroups:
      - "foo.io"
      resources:
      - "bar"
      scope: "account"
    - verbs:
        - create
      apiGroups:
        - "2.foo.io"
      resources:
        - "2.bar"
      scopes:
        - "namespace:ns1"
        - "namespace:ns2"
    - verbs:
      - patch
      apiGroups:
      - "bar.io"
      resources:
      - "foo"
status:
  namespace: app-created-namespace
  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: "."

