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

# Include{replicas1}
# Include{podSpec}
# Include{containerMain}

# Include{containerBasic}
# Include{containerAdvanced}
  - variable: statping
    group: App Configuration
    label: Statping Configuration
    schema:
      additional_attrs: true
      type: dict
      attrs:
        - variable: admin_user
          label: Admin User
          description: Username for administrator account
          schema:
            type: string
            required: true
            default: ""
        - variable: admin_pass
          label: Admin Password
          description: Password for administrator account
          schema:
            type: string
            required: true
            private: true
            default: ""
        - variable: admin_email
          label: Admin Email
          description: E-mail for administrator account
          schema:
            type: string
            required: true
            default: ""
        - variable: name
          label: Name
          description: Set a name for the Statping status page
          schema:
            type: string
            default: Statping Example
        - variable: description
          label: Description
          description: Set a description for the Statping status page
          schema:
            type: string
            default: This is a Statping instance deployed as Helm chart
        - variable: domain
          label: Domain
          description: Set a URL for the Statping status page
          schema:
            type: string
            default: ""
        - variable: language
          label: Language
          description: Language to use
          schema:
            type: string
            default: en
            enum:
              - value: en
                description: EN
              - value: fr
                description: FR
              - value: it
                description: IT
              - value: ru
                description: RU
              - value: zh
                description: ZH
              - value: de
                description: DE
              - value: ko
                description: KO
              - value: ja
                description: JA
        - variable: remove_after
          label: Remove After
          description: Automatically delete records after time
          schema:
            type: string
            default: ""
        - variable: cleanup_interval
          label: Cleanup Interval
          description: Interval to check for old records
          schema:
            type: string
            default: ""
        - variable: use_cdn
          label: Use CDN
          schema:
            type: boolean
            default: true
        - variable: allow_reports
          label: Allow Reports
          description: Send Statping anonymous error reports
          schema:
            type: boolean
            default: false
        - variable: disable_logs
          label: Disable Logs
          description: Disable logs from appearing and writing to disk
          schema:
            type: boolean
            default: false
        - variable: disable_colors
          label: Disable Colors
          description: Disable colors in terminal logs
          schema:
            type: boolean
            default: false
        - variable: sample_data
          label: Sample Data
          description: Insert sample services, groups and more
          schema:
            type: boolean
            default: false

# 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: 10099
                              required: true
# Include{serviceExpertRoot}
# Include{serviceExpert}
# Include{serviceList}
# Include{persistenceRoot}
        - variable: data
          label: "App Data Storage"
          description: "Stores the Application Data."
          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: 568
              - variable: runAsGroup
                label: "runAsGroup"
                description: "The groupID 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{metrics}
# Include{prometheusRule}
# Include{advanced}
# Include{addons}
# Include{codeserver}
# Include{netshoot}
# Include{vpn}
# Include{documentation}
