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

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

# Include{containerBasic}
# Include{containerAdvanced}

  - variable: homebox
    group: App Configuration
    label: Homebox Configuration
    schema:
      additional_attrs: true
      type: dict
      attrs:
        - variable: allow_registration
          label: Options Allow Registration
          description: Allow users to register themselves.
          schema:
            type: boolean
            default: true
        - variable: auto_increment_asset_id
          label: Options Auto Increment Asset ID
          description: Auto increments the asset_id field for new items.
          schema:
            type: boolean
            default: true
        - variable: max_upload_size
          label: Web Max Upload Size
          description: Maximum file upload size supported in MB.
          schema:
            type: int
            default: 10
        - variable: log_level
          label: Log Level
          description: Log level to use.
          schema:
            type: string
            default: info
            enum:
              - value: trace
                description: Trace
              - value: debug
                description: Debug
              - value: info
                description: Info
              - value: warn
                description: Warn
              - value: error
                description: Error
              - value: critical
                description: Critical
        - variable: log_format
          label: Log Format
          description: Log format to use
          schema:
            type: string
            default: text
            enum:
              - value: text
                description: Text
              - value: json
                description: Json
        - variable: mailer_host
          label: Mailer Host
          description: Email host to use.
          schema:
            type: string
            default: ""
        - variable: mailer_port
          label: Mailer Port
          description: Email port to use.
          schema:
            type: int
            show_if: [["mailer_host", "!=", ""]]
            required: true
            default: 587
        - variable: mailer_from
          label: Mailer From
          description: Email from address to use.
          schema:
            type: string
            show_if: [["mailer_host", "!=", ""]]
            required: true
            default: ""
        - variable: mailer_username
          label: Mailer Username
          description: Email user to use.
          schema:
            type: string
            show_if: [["mailer_host", "!=", ""]]
            required: true
            default: ""
        - variable: mailer_password
          label: Mailer Password
          description: Email password to use.
          schema:
            type: string
            show_if: [["mailer_host", "!=", ""]]
            private: true
            required: true
            default: ""

# 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: 10603
                              required: true
# Include{serviceExpertRoot}
# Include{serviceExpert}
# Include{serviceList}
# Include{persistenceRoot}
        - variable: data
          label: App Data Storage
          description: Stores the Application Data.
          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: 568
              - variable: runAsGroup
                label: "runAsGroup"
                description: "The groupID this App of the user running the application"
                schema:
                  type: int
                  default: 568
# 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}
