# Include{groups}
portals:
  open:
# Include{portalLink}
questions:
# Include{global}
# Include{workload}
# Include{workloadDeployment}
# Include{replicas1}
# Include{podSpec}
# Include{containerMain}
# Include{containerBasic}
# Include{containerAdvanced}
# Include{containerConfig}
# Include{podOptions}
  - variable: openbooks
    group: App Configuration
    label: OpenBooks Configuration
    schema:
      additional_attrs: true
      type: dict
      attrs:
        - variable: user_name
          label: User Name
          description: Username used to connect to IRC server.
          schema:
            type: string
            default: ""
            required: true
        - variable: server
          label: Server
          description: The IRC server:port to connect to.
          schema:
            type: string
            default: "irc.irchighway.net:6697"
            required: true
        - variable: tls
          label: TLS
          description: Connect to IRC server over TLS.
          schema:
            type: boolean
            default: true
        - variable: search
          label: Search
          description: The IRC search operator to use.
          schema:
            type: string
            default: search
            enum:
              - value: search
                description: Search
              - value: searchook
                description: Searchook
        - variable: debug
          label: Debug
          description: Display additional debug information, including all config values.
          schema:
            type: boolean
            default: false
        - variable: log
          label: Log
          description: Save raw IRC logs for each client connection.
          schema:
            type: boolean
            default: false
        - variable: persist
          label: Persist
          description: Save eBook files after sending to browser.
          schema:
            type: boolean
            default: true
        - variable: no_browser_downloads
          label: No Browser Downloads
          description: Don't send files to browser but save them to disk.
          schema:
            type: boolean
            default: true
# 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: 10608
                              required: true
# Include{serviceExpertRoot}
# Include{serviceExpert}
# Include{serviceList}
# Include{persistenceRoot}
        - variable: books
          label: "App Books Storage"
          description: "Stores the Application Books."
          schema:
            additional_attrs: true
            type: dict
            attrs:
# Include{persistenceBasic}
        - variable: logs
          label: "App Logs Storage"
          description: "Stores the Application Logs."
          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}
