# Include{groups}
portals:
  open:
# Include{portalLink}
questions:
# Include{global}
  - variable: imageSelector
    group: "Container Image"
    label: "Select Image"
    schema:
      type: string
      default: "image"
      enum:
        - value: "image"
          description: "Stable"
        - value: "nightlyImage"
          description: "Nightly"
# Include{workload}
# Include{workloadDeployment}

# Include{replicas1}
# Include{podSpec}
# Include{containerMain}
# Include{containerBasic}
# Include{containerAdvanced}

  - variable: env
    group: "App Configuration"
    label: "Image Environment"
    schema:
      additional_attrs: true
      type: dict
      attrs:
        - variable: IMPOSTOR_Server__PublicIp
          label: "Server Public IP"
          schema:
            type: string
            required: true
            default: "127.0.0.1"
        - variable: IMPOSTOR_Server__ListenIp
          label: "Server Listen IP"
          schema:
            type: string
            required: true
            default: "0.0.0.0"
        - variable: IMPOSTOR_AntiCheat__Enabled
          label: "Enable/Disable Anti Cheat"
          schema:
            type: boolean
            default: true
        - variable: IMPOSTOR_AntiCheat__BanIpFromGame
          label: "Enable/Disable Anti Cheat Ban IP"
          schema:
            type: boolean
            default: true
        - variable: debug
          label: "Show Debug settings"
          schema:
            type: boolean
            default: false
            show_subquestions_if: true
            subquestions:
              - variable: IMPOSTOR_Debug__GameRecorderEnabled
                label: "Enable/Disable Game Recorder"
                schema:
                  type: boolean
                  default: false
              - variable: IMPOSTOR_Debug__GameRecorderPath
                label: "Game Recorder Path"
                schema:
                  type: string
                  default: ""
# Include{containerConfig}
# 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: 22023
                              required: true
# Include{serviceExpertRoot}
            default: false
# Include{serviceExpert}
# Include{serviceList}
# Include{persistenceList}
# 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}
