# Include{groups}
portals: {}
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: RINGTOKEN
                                        label: "RINGTOKEN"
                                        description: "RINGTOKEN can be left blank for web authenticated."
                                        schema:
                                          type: string
                                          private: true
                                          default: ""
                                      - variable: MQTTUSER
                                        label: "MQTTUSER"
                                        description: "Set a username for your MQTT instance."
                                        schema:
                                          type: string
                                          default: ""
                                      - variable: MQTTPASSWORD
                                        label: "MQTTPASSWORD"
                                        description: "Set a password for your MQTT instance."
                                        schema:
                                          type: string
                                          default: ""
                                          private: true
                                      - variable: MQTTHOST
                                        label: "MQTTHOST"
                                        description: "Set the MQTT host cluster url or ip. ex: `mosquitto.ix-mosquitto.svc.cluster.local`."
                                        schema:
                                          type: string
                                          default: ""
                                      - variable: MQTTPORT
                                        label: "MQTTPORT"
                                        description: "Set MQTTPORT to the port that your MQTT uses."
                                        schema:
                                          type: int
                                          default: 1883
                                      - variable: ENABLECAMERAS
                                        label: "ENABLECAMERAS"
                                        description: "Default false since the native Ring component for Home Assistant supports cameras, set to true to enable camera/chime support in this add-on. Access to Chimes cannot be granted to shared users so Chime support requires use of the primary Ring account."
                                        schema:
                                          type: boolean
                                          default: false
                                      - variable: SNAPSHOTMODE
                                        label: "SNAPSHOTMODE"
                                        description: "Set SNAPSHOTMODE to [`Auto``, `Motion`, `Interval`, `All`] or default `disabled`"
                                        schema:
                                          type: string
                                          default: "disabled"
                                          enum:
                                            - value: disabled
                                              description: Disabled
                                            - value: auto
                                              description: Auto
                                            - value: motion
                                              description: Motion
                                            - value: interval
                                              description: Interval
                                            - value: all
                                              description: All
                                      - variable: ENABLEMODES
                                        label: "ENABLEMODES"
                                        description: "Enable support for Location Modes for sites without a Ring Alarm Panel."
                                        schema:
                                          type: boolean
                                          default: false
                                      - variable: ENABLEPANIC
                                        label: "ENABLEPANIC"
                                        description: "Enable panic buttons on Alarm Control Panel device."
                                        schema:
                                          type: boolean
                                          default: false
                                      - variable: BEAMDURATION
                                        label: "BEAMDURATION"
                                        description: "Container Variable BEAMDURATION"
                                        schema:
                                          type: string
                                          default: "0"
                                      - variable: DISARMCODE
                                        label: "DISARMCODE"
                                        description: "Used only with Home Assistant, when defined this option causes the Home Assistant Alarm Control Panel integration to require entering this code to disarm the alarm"
                                        schema:
                                          type: string
                                          default: ""
                                      - variable: RINGLOCATIONIDS
                                        label: "RINGLOCATIONIDS"
                                        description: "Array of location Ids in format: [`loc-id`, `loc-id2`], see [Limiting Locations](https://github.com/tsightler/ring-mqtt/wiki/Configuration-Details#limiting-locations) for details."
                                        schema:
                                          type: string
                                          default: ""
# 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: 55123
                              required: true
        - variable: rtsp
          label: "RCON 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: rtsp
                      label: "RTSP 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: 8554
                              required: true
# Include{serviceExpertRoot}
            default: false
# Include{serviceExpert}
# Include{serviceList}
# Include{persistenceRoot}
        - variable: data
          label: "data Storage"
          description: "Data Path"
          schema:
            additional_attrs: true
            type: dict
            attrs:
# Include{persistenceBasic}
# Include{persistenceList}
# 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}
