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

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

# Include{containerBasic}
# Include{containerAdvanced}

  - variable: ring
    group: App Configuration
    label: Ring-Mqtt
    schema:
      additional_attrs: true
      type: dict
      attrs:
        - variable: mqtt_url
          label: MQTT Url
          description: URL for connecting to MQTT broker in standard MQTT URL format.
          schema:
            type: string
            required: true
            default: "mqtt://mosquitto.ix-mosquitto.svc.cluster.local:1883"
        - variable: livestream_user
          label: LiveStream User
          description: Specify a user for RTSP connections.
          schema:
            type: string
            default: ""
        - variable: livestream_pass
          label: LiveStream Password
          description: Specify a password for RTSP connections.
          schema:
            type: string
            private: true
            default: ""
        - variable: disarm_code
          label: Disarm Code
          description: Home Assistant Alarm Control Panel integration require entering this code to disarm the alarm
          schema:
            type: string
            default: ""
        - variable: enable_cameras
          label: Enable Cameras
          description: Enables support for camera/chimes.
          schema:
            type: boolean
            default: true
        - variable: enable_modes
          label: Enable Modes
          description: Enable support for Location Modes for sites without a Ring Alarm Panel.
          schema:
            type: boolean
            default: false
        - variable: enable_panic
          label: Enable Panic
          description: Enable panic buttons on Alarm Control Panel device.
          schema:
            type: boolean
            default: false
        - variable: hass_topic
          label: Hass Topic
          description: The topic to monitor for Home Assistant restarts (MQTT birth/last will messages)
          schema:
            type: string
            default: "homeassistant/status"
        - variable: location_ids
          label: Location Ids
          schema:
            type: list
            default: []
            items:
              - variable: location
                label: Location
                schema:
                  type: string
                  required: true
                  default: ""

# 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: 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}
# 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}
