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

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

  - variable: pmm
    group: App Configuration
    label: PMM Configuration
    schema:
      additional_attrs: true
      type: dict
      attrs:
        - variable: plex_url
          label: Plex Url
          schema:
            type: string
            required: true
            default: ""
        - variable: plex_token
          label: Plex Token
          schema:
            type: string
            required: true
            private: true
            default: ""
        - variable: run
          label: PMM Run
          description: Perform a run immediately, bypassing the time to run flag.
          schema:
            type: boolean
            default: false
            show_subquestions_if: false
            subquestions:
              - variable: times
                label: PMM Time
                description: "Specify the time of day that Plex Meta Manager will run. Format: HH:MM"
                schema:
                  type: list
                  default: ["00:00"]
                  items:
                    - variable: timeEntry
                      label: Time Entry
                      schema:
                        type: string
                        required: true
                        default: ""
              - variable: no_countdown
                label: PMM No Countdown
                description: Run without displaying a countdown to the next scheduled run.
                schema:
                  type: boolean
                  default: true
# Include{containerConfig}
# Include{serviceExpertRoot}
            default: false
# Include{serviceExpert}
# Include{serviceList}
# Include{persistenceRoot}
        - variable: config
          label: App Config Storage
          description: Stores the Application Configuration.
          schema:
            additional_attrs: true
            type: dict
            attrs:
# Include{persistenceBasic}
# Include{persistenceList}

# Include{podSecurityContextRoot}
        - 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}
