# Include{groups}
portals:
  open:
# Include{portalLink}
questions:
# Include{global}
# Include{workload}
# Include{workloadDeployment}

# Include{replicas1}
# Include{podSpec}
# Include{containerMain}
                                - variable: env
                                  label: Image Environment
                                  schema:
                                    additional_attrs: true
                                    type: dict
                                    attrs:
                                      - variable: SSHWIFTY_HOSTNAME
                                        label: HostName
                                        description: HTTP Host. Keep it empty to accept request from all hosts
                                        schema:
                                          type: string
                                          default: ""
                                      - variable: SSHWIFTY_SHAREDKEY
                                        label: SharedKey
                                        description: Web interface access password. Set to empty to allow public access
                                        schema:
                                          type: string
                                          private: true
                                          default: ""
                                      - variable: DialTimeout
                                        label: Dial Timeout
                                        description: Remote dial timeout in seconds.
                                        schema:
                                          type: int
                                          default: 10
                                      - variable: SOCKS5
                                        label: Show SOCKS5 Section
                                        schema:
                                          type: boolean
                                          default: false
                                          show_subquestions_if: true
                                          subquestions:
                                            - variable: SSHWIFTY_SOCKS5
                                              label: Socks5 Host
                                              description: connect remote through the given proxy
                                              schema:
                                                type: string
                                                default: ""
                                            - variable: SSHWIFTY_SOCKS5_USER
                                              label: Socks5 User
                                              description: Username of the Socks5 server
                                              schema:
                                                type: string
                                                default: ""
                                            - variable: SSHWIFTY_SOCKS5_PASSWORD
                                              label: Socks5 Password
                                              description: Password of the Socks5 server
                                              schema:
                                                type: string
                                                private: true
                                                default: ""
                                      - variable: SSHWIFTY_LISTENINTERFACE
                                        label: Listen Interface
                                        description: Which local network interface this server will be listening.
                                        schema:
                                          type: string
                                          default: 0.0.0.0
                                      - variable: SSHWIFTY_INITIALTIMEOUT
                                        label: Initial TimeOut
                                        description: Timeout of initial request in Seconds.
                                        schema:
                                          type: int
                                          default: 3
                                      - variable: SSHWIFTY_READTIMEOUT
                                        label: Read TimeOut
                                        description: How long does the connection can stay in idle before the backend server disconnects the client in Seconds.
                                        schema:
                                          type: int
                                          default: 60
                                      - variable: SSHWIFTY_WRITETIMEOUT
                                        label: Write TimeOut
                                        description: How long the server will wait until the client connection is ready to receive new data in Seconds.
                                        schema:
                                          type: int
                                          default: 60
                                      - variable: SSHWIFTY_HEARTBEATTIMEOUT
                                        label: HeartBeat TimeOut
                                        description: The interval between internal echo requests in Seconds.
                                        schema:
                                          type: int
                                          default: 20
                                      - variable: SSHWIFTY_READDELAY
                                        label: Read Delay
                                        description: Forced delay between each request in MilliSeconds.
                                        schema:
                                          type: int
                                          default: 10
                                      - variable: SSHWIFTY_WRITEDELAY
                                        label: Write Delay
                                        description: Forced delay between each write in MilliSeconds.
                                        schema:
                                          type: int
                                          default: 10
                                      - variable: SSHWIFTY_ONLYALLOWPRESETREMOTES
                                        label: Only Allow Preset Remotes
                                        description: Allow the Preset Remotes only, and refuse to connect to any other remote host.
                                        schema:
                                          type: boolean
                                          default: false

# Include{containerBasic}
# Include{containerAdvanced}

# Include{containerConfig}
# 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: 8182
                              required: true
# Include{serviceExpertRoot}
            default: false
# Include{serviceExpert}
# Include{serviceList}
# 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 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}
