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

# Include{replicas1}
# Include{podSpec}
# Include{containerMain}
                                - variable: env
                                  group: "App Configuration"
                                  label: "Image Environment"
                                  schema:
                                    additional_attrs: true
                                    type: dict
                                    attrs:
                                      - variable: BASEROW_PUBLIC_URL
                                        label: "BASEROW_PUBLIC_URL"
                                        description: "The public URL or IP that will be used to access baserow. Always should start with http:// https:// even if accessing via an IP address."
                                        schema:
                                          type: string
                                          required: true
                                          default: ""
                                      - variable: enable_mail_settings
                                        label: "Enable Mail Settings"
                                        schema:
                                          type: boolean
                                          default: false
                                          show_subquestions_if: true
                                          subquestions:
                                            - variable: FROM_EMAIL
                                              label: "FROM_EMAIL"
                                              description: "The public URL or IP that will be used to access baserow. Always should start with http:// https:// even if accessing via an IP address."
                                              schema:
                                                type: string
                                                default: ""
                                            - variable: EMAIL_SMTP
                                              label: "EMAIL_SMTP"
                                              description: "If set to any non empty value then Baserow will start sending emails using the configuration options below. If not set then Baserow will not send emails and just log them to the Celery worker logs instead."
                                              schema:
                                                type: string
                                                default: ""
                                                enum:
                                                  - value: ""
                                                    description: "Disabled"
                                                  - value: "true"
                                                    description: "Enabled"
                                            - variable: EMAIL_SMTP_USE_TLS
                                              label: "EMAIL_SMTP_USE_TLS"
                                              description: "If set to any non empty value then Baserow will attempt to send emails using TLS."
                                              schema:
                                                type: string
                                                default: ""
                                                enum:
                                                  - value: ""
                                                    description: "Disabled"
                                                  - value: "true"
                                                    description: "Enabled"
                                            - variable: EMAIL_SMTP_HOST
                                              label: "EMAIL_SMTP_HOST"
                                              description: "The host of the external SMTP server that Baserow should use to send emails."
                                              schema:
                                                type: string
                                                default: ""
                                            - variable: EMAIL_SMTP_PORT
                                              label: "EMAIL_SMTP_PORT"
                                              description: "The port used to connect to $EMAIL_SMTP_HOST on."
                                              schema:
                                                type: int
                                                default: 587
                                            - variable: EMAIL_SMTP_USER
                                              label: "EMAIL_SMTP_USER"
                                              description: "The username to authenticate with $EMAIL_SMTP_HOST when sending emails."
                                              schema:
                                                type: string
                                                default: ""
                                            - variable: EMAIL_SMTP_PASSWORD
                                              label: "EMAIL_SMTP_PASSWORD"
                                              description: "The password to authenticate with $EMAIL_SMTP_HOST when sending emails."
                                              schema:
                                                type: string
                                                private: true
                                                default: ""
# Include{containerBasic}
# Include{containerAdvanced}

# Include{containerConfig}
# Include{podOptions}
# 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: 10228
                              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: 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}
