# This basic test just ensures that the nested Acorn configured in this AppInstance receives the correct configuration
# in the resulting AppInstance created for it.
kind: AppInstance
apiVersion: internal.acorn.io/v1
metadata:
  uid: 1234567890abcdef
  name: app-name
  namespace: app-namespace
spec:
  image: test
status:
  namespace: app-created-namespace
  appImage:
    id: foo
  appSpec:
    acorns:
      acorn-name:
        image: foo
        deployArgs:
          myArg: value
        autoUpgrade: true
        notifyUpgrade: true
        autoUpgradeInterval: "1m"
        secrets:
          - target: target
            secret: secret
        volumes:
          - volume: vol
            target: target
            accessModes:
              - readWriteOnce
              - readWriteMany
            size: 1Gi
            class: volclass
        publish:
          - port: 4444
            protocol: http
        environment:
          - name: MY_VAR
            value: my-value
        profiles:
          - profileOne
          - profileTwo
        labels:
          myLabel: myValue
        annotations:
          myAnnotation: myValue
        links:
          - target: targetApp
            service: myService
        memory:
          workload1: 1024
        computeClasses:
          workload1: default
