# Include{groups}
portals:
  open:
# Include{portalLink}
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: RWA_USERNAME
                                        label: RWA USERNAME
                                        description: Sets the initial user's username for the web interface.
                                        schema:
                                          type: string
                                          default: ""
                                      - variable: RWA_PASSWORD
                                        label: RWA PASSWORD
                                        description: Sets the initial user's password for the web interface.
                                        schema:
                                          type: string
                                          default: ""
                                          private: true
                                          required: true
                                      - variable: RWA_RCON_PASSWORD
                                        label: RWA RCON PASSWORD
                                        description: The password for the initial RCON server to control
                                        schema:
                                          type: string
                                          default: ""
                                          private: true

# Include{containerBasic}
# Include{containerAdvanced}
  - variable: rcon
    group: App Configuration
    label: RCON Configuration
    schema:
      additional_attrs: true
      type: dict
      attrs:
        - variable: rwa_env
          label: RWA ENV
          description: Enables configuration by environment variables.
          schema:
            type: boolean
            default: false
        - variable: rwa_admin
          label: RWA ADMIN
          description: Sets the initial user as an admin
          schema:
            type: boolean
            default: true
        - variable: rwa_web_rcon
          label: RWA WEB RCON
          description: Enables web rcon if supported by the game server
          schema:
            type: boolean
            default: false
        - variable: rwa_read_only_widget_options
          label: RWA READ ONLY WIDGET OPTIONS
          description: Prevent the initial user changing options in the widget options tab
          schema:
            type: boolean
            default: false
        - variable: rwa_game
          label: RWA GAME
          description: The initial game you wish to control.
          schema:
            type: string
            default: minecraft
        - variable: rwa_server_name
          label: RWA SERVER NAME
          description: The display name of the initial server
          schema:
            type: string
            default: minecraft
        - variable: rwa_rcon_host
          label: RWA RCON HOST
          description: The initial RCON server IP to control
          schema:
            type: string
            default: ""
        - variable: rwa_rcon_port
          label: RWA_RCON_PORT
          description: The port number of the initial RCON server to control
          schema:
            type: int
            default: 25575
        - variable: rwa_websocket_url_ssl
          label: RWA WEBSOCKET URL SSL
          description: SSL WebSocket URL
          schema:
            type: string
            default: ""
        - variable: rwa_websocket_url
          label: RWA WEBSOCKET URL
          description: WebSocket URL
          schema:
            type: string
            default: ""
        - variable: rwa_restrict_commands
          label: RWA RESTRICT COMMANDS
          description: Prevent the initial user user executing these commands
          schema:
            type: list
            default: []
            items:
              - variable: command
                label: command
                schema:
                  type: string
                  required: true
                  default: ""
        - variable: rwa_restrict_widgets
          label: RWA RESTRICT WIDGETS
          description: Hide this list of widgets from the initial user
          schema:
            type: list
            default: []
            items:
              - variable: widget
                label: widget
                schema:
                  type: string
                  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: 4326
                              required: true
        - variable: websocketaccess
          label: Web Socket Access service
          description: Container Port 4327
          schema:
            additional_attrs: true
            type: dict
            attrs:
# Include{serviceSelectorLoadBalancer}
# Include{serviceSelectorExtras}
                    - variable: websocketaccess
                      label: Web Socket Access 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: 4327
                              required: true
# Include{serviceExpertRoot}
# Include{serviceExpert}
# Include{serviceList}
# Include{persistenceRoot}
        - variable: db
          label: App DB Storage
          description: Stores the Application DB.
          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}
        - variable: websocketaccess
          label: "WS 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: 568

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