# 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: USERNAME
                                        label: Username
                                        description: Your Steam username goes here if you want to install a game that needs a valid account, otherwise leave it blank (ATTENTION You have to disable Steam Guard)
                                        schema:
                                          type: string
                                          default: ""
                                      - variable: PASSWRD
                                        label: Password
                                        description: Your Steam password goes here if you want to install a game that needs a valid account, otherwise leave it blank (ATTENTION You have to disable Steam Guard)
                                        schema:
                                          type: string
                                          private: true
                                          default: ""
                                      - variable: GAME_ID
                                        label: Game ID
                                        description: "The GAME_ID that the container download at startup.(https://developer.valvesoftware.com/wiki/Dedicated_Servers_List)"
                                        schema:
                                          type: string
                                          default: "294420"
                                      - variable: SERVERCONFIG
                                        label: Server Config
                                        description: Please change if your serverconfig file has another name.
                                        schema:
                                          type: string
                                          default: "serverconfig.xml"
                                      - variable: GAME_PARAMS
                                        label: Game Params
                                        description: Enter your start up commands for the server
                                        schema:
                                          type: string
                                          default: "-logfile 7DaysToDie_Data/output_log.txt $@"
                                      - variable: VALIDATE
                                        label: Validate
                                        description: Set the Variable to true if you want to validate the installation otherwise leave it blank."
                                        schema:
                                          type: string
                                          default: ""
                                      - variable: ENABLE_BEPINEX
                                        label: Enable BepInEx
                                        description: If you want to enable BepInEx set this variable to true
                                        schema:
                                          type: boolean
                                          default: false
                                      - variable: BACKUP_FILES
                                        label: Backup Files
                                        description: Set this value to true to enable the automated backup function from the container
                                        schema:
                                          type: boolean
                                          default: false
                                          show_subquestions_if: true
                                          subquestions:
                                          - variable: BACKUP_INTERVAL
                                            label: Backup Interval
                                            description: The backup interval in minutes
                                            schema:
                                              type: int
                                              default: 60
                                          - variable: BACKUP_TO_KEEP
                                            label: Backup to Keep
                                            description: Number of backups to keep
                                            schema:
                                              type: int
                                              default: 12
# Include{containerBasic}
# Include{containerAdvanced}
# Include{containerConfig}
# Include{podOptions}
# Include{serviceRoot}
        - variable: main
          label: "Main Service"
          description: "The Primary service on which the healthcheck runs, often the webUI"
          schema:
            additional_attrs: true
            type: dict
            attrs:
# 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: 26900
                              required: true
        - variable: steammasterser
          label: 'steammasterser service'
          description: "Container Port 26900"
          schema:
            additional_attrs: true
            type: dict
            attrs:
# Include{serviceSelectorLoadBalancer}
# Include{serviceSelectorExtras}
                    - variable: steammasterser
                      label: "steammasterser 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: 26900
                              required: true
        - variable: steamcommunica
          label: 'steamcommunica service'
          description: "Container Port 26901"
          schema:
            additional_attrs: true
            type: dict
            attrs:
# Include{serviceSelectorLoadBalancer}
# Include{serviceSelectorExtras}
                    - variable: steamcommunica
                      label: "steamcommunica 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: 26901
                              required: true
        - variable: raknet
          label: 'raknet service'
          description: "Container Port 26902"
          schema:
            additional_attrs: true
            type: dict
            attrs:
# Include{serviceSelectorLoadBalancer}
# Include{serviceSelectorExtras}
                    - variable: raknet
                      label: "raknet 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: 26902
                              required: true
        - variable: unet
          label: 'unet service'
          description: "Container Port "
          schema:
            additional_attrs: true
            type: dict
            attrs:
# Include{serviceSelectorLoadBalancer}
# Include{serviceSelectorExtras}
                    - variable: unet
                      label: "unet 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: 26903
                              required: true
        - variable: webbasecontrol
          label: 'webbasecontrol service'
          description: "Container Port 8080"
          schema:
            additional_attrs: true
            type: dict
            attrs:
# Include{serviceSelectorLoadBalancer}
# Include{serviceSelectorExtras}
                    - variable: webbasecontrol
                      label: "webbasecontrol 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: 8080
                              required: true
        - variable: webpanel
          label: 'webpanel service'
          description: "Container Port 8082"
          schema:
            additional_attrs: true
            type: dict
            attrs:
# Include{serviceSelectorLoadBalancer}
# Include{serviceSelectorExtras}
                    - variable: webpanel
                      label: "webpanel 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: 8082
                              required: true
        - variable: registeringats
          label: 'registeringats service'
          description: "Should be in the range 27015 - 27030, dont forget to set also a different Container Port if you change this value."
          schema:
            additional_attrs: true
            type: dict
            attrs:
# Include{serviceSelectorLoadBalancer}
# Include{serviceSelectorExtras}
                    - variable: registeringats
                      label: "registeringats 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: 27015
                              required: true
# Include{serviceExpertRoot}
# Include{serviceExpert}
# Include{serviceList}
# Include{persistenceRoot}
        - variable: steamcmd
          label: "steamcmd Storage"
          description: "Container Path serverdatasteamcmd"
          schema:
            additional_attrs: true
            type: dict
            attrs:
# Include{persistenceBasic}
        - variable: serverfiles
          label: "serverfiles Storage"
          description: "Container Path serverdataserverfiles"
          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}
