# Include{groups}
portals:
  open:
# Include{portalLink}
  admin:
    protocols:
      - "$kubernetes-resource_configmap_portal_protocol"
    host:
      - "$kubernetes-resource_configmap_portal_host"
    ports:
      - "$variable-service.admin.ports.admin.port"
questions:
# Include{global}
# Include{workload}
# Include{workloadDeployment}

# Include{replicas1}
# Include{podSpec}
# Include{containerMain}


                                - variable: env
                                  group: "App Configuration"
                                  label: "Image Environment"
                                  schema:
                                    additional_attrs: true
                                    type: dict
                                    attrs:
                                      - variable: DOCKER_HUB_USERNAME
                                        label: Docker Hub Username
                                        description: Optionally specify a DockerHub Username to pull private images.
                                        schema:
                                          type: string
                                          default: ""
                                      - variable: DOCKER_HUB_PASSWORD
                                        label: Docker Hub Password
                                        description: Optionally specify a DockerHub password to pull private images.
                                        schema:
                                          type: string
                                          private: true
                                          default: ""

# Include{containerBasic}
# Include{containerAdvanced}

  - variable: kasm
    group: App Configuration
    label: KASM Configuration
    schema:
      additional_attrs: true
      type: dict
      attrs:
        - variable: mountUdev
          label: Mount /run/udev/data
          description: Mounts host's /run/udev/data to container. Know the risks first. Used for GamePad support.
          schema:
            type: boolean
            default: false
        - variable: mountInput
          label: Mount /dev/input
          description: Mounts host's /dev/input to container. Know the risks first. Used for GamePad support.
          schema:
            type: boolean
            default: false

# 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: 10350
                              required: true
        - variable: admin
          label: Admin Service
          description: The Admin service
          schema:
            additional_attrs: true
            type: dict
            attrs:
# Include{serviceSelectorLoadBalancer}
# Include{serviceSelectorExtras}
                    - variable: admin
                      label: Admin 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: 10351
                              required: true
# Include{serviceExpertRoot}
# Include{serviceExpert}
# Include{serviceList}
# Include{persistenceRoot}
        - variable: data
          label: Data Storage
          description: /opt Storage
          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 this App 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: 0

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