# Include{groups}
portals:
  open:
# Include{portalLink}
questions:
# Include{global}
# Include{workload}
# Include{workloadDeployment}
# Include{replicas1}
# Include{podSpec}
# Include{containerMain}

                                - variable: env
                                  label: Image Environment
                                  schema:
                                    additional_attrs: true
                                    type: dict
                                    attrs:
                                      - variable: USER_PASSWORD
                                        label: "User Password"
                                        schema:
                                          type: string
                                          private: true
                                          default: ""
                                      - variable: MODE
                                        label: "Mode"
                                        description: "Configures the container to not start an X server of its own if set to secondary mode."
                                        schema:
                                          type: string
                                          required: true
                                          default: "primary"
                                          enum:
                                            - value: "primary"
                                              description: "Primary"
                                            - value: "secondary"
                                              description: "Secondary"
                                      - variable: DISPLAY
                                        label: "Display"
                                        description: "Configures the screen to use the primary display."
                                        schema:
                                          type: string
                                          default: ":0"
                                          show_if: [[MODE, "=", "secondary"]]
                                      - variable: HOST_DBUS
                                        label: "Host DBus"
                                        description: "Configures the container to use the host DBus process."
                                        schema:
                                          type: boolean
                                          default: false
                                          show_if: [[MODE, "=", "secondary"]]
                                      - variable: WEB_UI_MODE
                                        label: "Web UI Mode"
                                        description: "Enables audio over for the VNC Web UI."
                                        schema:
                                          type: string
                                          required: true
                                          default: "vnc"
                                          enum:
                                            - value: "none"
                                              description: "None"
                                            - value: "vnc"
                                              description: "VNC"
                                            - value: "neko"
                                              description: "Neko"
                                      - variable: ENABLE_VNC_AUDIO
                                        label: "Enable VNC Audio"
                                        description: "Enables audio over for the VNC Web UI."
                                        schema:
                                          type: boolean
                                          default: true
                                          show_if: [[WEB_UI_MODE, "=", "vnc"]]
                                      - variable: NEKO_NAT1TO1
                                        label: "Neko Nat1T01"
                                        description: Configure nat1to1 for the neko WebUI.
                                        schema:
                                          type: string
                                          default: ""
                                          show_if: [[WEB_UI_MODE, "=", "neko"]]
                                      - variable: ENABLE_SUNSHINE
                                        label: "Enable Sunshine"
                                        description: "Enable Sunshine streaming service."
                                        schema:
                                          type: boolean
                                          default: false
                                      - variable: SUNSHINE_USER
                                        label: "Sunshine User"
                                        description: "Set the Sunshine service username."
                                        schema:
                                          type: string
                                          private: true
                                          default: ""
                                          show_if: [[ENABLE_SUNSHINE, "=", "true"]]
                                      - variable: SUNSHINE_PASS
                                        label: "Sunshine Password"
                                        description: "Set the Sunshine service password."
                                        schema:
                                          type: string
                                          private: true
                                          default: ""
                                          show_if: [[ENABLE_SUNSHINE, "=", "true"]]
                                      - variable: ENABLE_EVDEV_INPUTS
                                        label: "Enable EVDev Inputs"
                                        description: "Enable Keyboard and Mouse Passthrough."
                                        schema:
                                          type: boolean
                                          default: true

# Include{containerBasic}
# Include{containerAdvanced}
# Include{containerConfig}
# Include{podOptions}
# Include{serviceRoot}
# Include{serviceMain}
# Include{serviceSelectorLoadBalancer}
# Include{serviceSelectorExtras}
                    - variable: main
                      label: Main Service Port Configuration
                      schema:
                        additional_attrs: true
                        type: dict
                        attrs:
                          - variable: port
                            label: Port
                            description: This port exposes the container port on the service
                            schema:
                              type: int
                              default: 8083
                              required: true
# Include{serviceExpertRoot}
# Include{serviceExpert}
# Include{serviceList}
# Include{persistenceRoot}
        - variable: home
          label: "App Home Storage"
          description: "Stores the Application Home."
          schema:
            additional_attrs: true
            type: dict
            attrs:
# Include{persistenceBasic}
        - variable: games
          label: "App Games Storage"
          description: "Stores the Application Games."
          schema:
            additional_attrs: true
            type: dict
            attrs:
# Include{persistenceBasic}
        - variable: flatpak
          label: "App FlatPak Storage"
          description: "Stores the Application FlatPak."
          schema:
            additional_attrs: true
            type: dict
            attrs:
# Include{persistenceBasic}
# Include{persistenceList}
# Include{ingressRoot}
        - variable: main
          label: "Main Ingress"
          schema:
            additional_attrs: true
            type: dict
            attrs:
# Include{ingressDefault}
# Include{ingressTLS}
# Include{ingressTraefik}
# Include{ingressAdvanced}
# Include{ingressList}
# Include{securityContextRoot}

              - variable: runAsUser
                label: "runAsUser"
                description: "The UserID of the user running the application"
                schema:
                  type: int
                  default: 0
              - variable: runAsGroup
                label: "runAsGroup"
                description: "The groupID of the user running the application"
                schema:
                  type: int
                  default: 0
# Include{securityContextContainer}
# Include{securityContextAdvanced}
# Include{securityContextPod}
              - variable: fsGroup
                label: "fsGroup"
                description: "The group that should own ALL storage."
                schema:
                  type: int
                  default: 568

# Include{resources}
# Include{advanced}
# Include{addons}
# Include{codeserver}
# Include{netshoot}
# Include{vpn}
# Include{documentation}
