# Include{groups}
questions:
# Include{global}
# Include{workload}
# Include{workloadDeployment}

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

# Include{containerConfig}
# Include{podOptions}
  - variable: clickhouseDatabase
    group: "App Configuration"
    label: "Database Name"
    schema:
      type: string
      default: "test"
      required: true
  - variable: clickhouseUsername
    group: "App Configuration"
    label: "Database User"
    schema:
      type: string
      default: "test"
      required: true
  - variable: clickhousePassword
    group: "App Configuration"
    label: "Database Password"
    schema:
      type: string
      default: ""
      required: true
      private: true
  - variable: clickhouseDefaultAccessManagement
    group: "App Configuration"
    label: "Default Access Management"
    schema:
      type: int
      default: 0
      required: true
      enum:
        - value: 0
          description: "Disabled"
        - value: 1
          description: "Enabled"
# 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: 8123
                              required: true
# Include{serviceExpertRoot}
            default: false
# Include{serviceExpert}
# Include{serviceList}
# Include{persistenceRoot}
      additional_attrs: true
      type: dict
      attrs:
        - variable: data
          label: Data Storage
          description: Stores the ClickHouse Data
          schema:
            type: dict
            hidden: true
            attrs:
# Include{persistenceBasic}
        - variable: config-server
          label: Server Configuration Storage
          description: Files with Server Settings Adjustments
          schema:
            type: dict
            hidden: true
            attrs:
# Include{persistenceBasic}
        - variable: config-users
          label: Users Configuration Storage
          description: Files with Users Settings Adjustments
          schema:
            type: dict
            hidden: true
            attrs:
# Include{persistenceBasic}
# 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 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}
