# Include{groups}
portals:
  open:
# Include{portalLink}
questions:
# Include{global}
# 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: GAME_PARAMS
          label: "GAME_PARAMS"
          description: "Enter your extra startup parameters otherwise leave blank!"
          schema:
            type: string
            default: ""
        - variable: XMS_SIZE
          label: "XMS_SIZE"
          description: "Enter your XMS size in MB (XMS=The initial and minimum heap size. It is recommended to set the minimum heap size equivalent to the maximum heap size in order to minimize the garbage collection.)"
          schema:
            type: string
            default: "1024"
        - variable: XMX_SIZE
          label: "XMX_SIZE"
          description: "Enter your XMX size in MB (XMX=The maximum heap size. The performance will decrease if the max heap value is set lower than the amount of live data. It will force frequent garbage collections in order to free up space.)"
          schema:
            type: string
            default: "1024"
        - variable: UMASK
          label: "UMASK"
          description: "Container Variable UMASK"
          schema:
            type: string
            default: "000"
        - variable: DATA_PERM
          label: "DATA_PERM"
          description: "Container Variable DATAPERM"
          schema:
            type: string
            default: "770"
        - variable: RUNTIME_NAME
          label: "RUNTIME_NAME"
          description: "Enter your extracted Runtime folder name.Dont change unless you are knowing what you are doing!"
          schema:
            type: string
            default: "basicjre"
        - variable: STARTER_PARAMS
          label: "STARTER_PARAMS"
          description: "Only change if you know what you are doing!"
          schema:
            type: string
            default: "-nogui"
        - variable: DL_URL
          label: "DL_URL"
          description: "Only change if you know what you are doing!"
          schema:
            type: string
            default: "http://files.star-made.org/StarMade-Starter.jar"
# 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: 4242
                              required: true
# Include{serviceExpertRoot}
            default: false
# Include{serviceExpert}
# Include{serviceList}
# Include{persistenceRoot}
        - variable: serverfiles
          label: "serverfiles Storage"
          description: "Container Path starmade"
          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{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}
