# 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: QBT_RUN
                                        label: QBT_RUN
                                        description: Run without the scheduler. Script will exit after completion.
                                        schema:
                                          type: boolean
                                          default: false
                                      - variable: QBT_SCHEDULE
                                        label: QBT_SCHEDULE
                                        description: Schedule to run every x minutes.
                                        schema:
                                          type: int
                                          default: 30
                                      - variable: QBT_CROSS_SEED
                                        label: QBT_CROSS_SEED
                                        description: Use this after running cross-seed script to add torrents from the cross-seed output folder to qBittorrent
                                        schema:
                                          type: boolean
                                          default: false
                                      - variable: QBT_RECHECK
                                        label: QBT_RECHECK
                                        description: Recheck paused torrents sorted by lowest size. Resume if Completed.
                                        schema:
                                          type: boolean
                                          default: false
                                      - variable: QBT_CAT_UPDATE
                                        label: QBT_CAT_UPDATE
                                        description: Use this if you would like to update your categories or move from one category to another.
                                        schema:
                                          type: boolean
                                          default: false
                                      - variable: QBT_TAG_UPDATE
                                        label: QBT_TAG_UPDATE
                                        description: Use this if you would like to update your tags. (Only adds tags to untagged torrents)
                                        schema:
                                          type: boolean
                                          default: false
                                      - variable: QBT_REM_UNREGISTERED
                                        label: QBT_REM_UNREGISTERED
                                        description: Use this if you would like to remove unregistered torrents. (It will the delete data & torrent if it is not being cross-seeded, otherwise it will just remove the torrent without deleting data)
                                        schema:
                                          type: boolean
                                          default: false
                                      - variable: QBT_REM_ORPHANED
                                        label: QBT_REM_ORPHANED
                                        description: Use this if you would like to remove orphaned files from your root_dir directory that are not referenced by any torrents. It will scan your root_dir directory and compare it with what is in qBittorrent. Any data not referenced in qBittorrent will be moved into /data/torrents/orphaned_data folder for you to review/delete.
                                        schema:
                                          type: boolean
                                          default: false
                                      - variable: QBT_TAG_NOHARDLINKS
                                        label: QBT_TAG_NOHARDLINKS
                                        description: Use this to tag any torrents that do not have any hard links associated with any of the files. This is useful for those that use Sonarr/Radarr that hard links your media files with the torrents for seeding. When files get upgraded they no longer become linked with your media therefore will be tagged with a new tag noHL. You can then safely delete/remove these torrents to free up any extra space that is not being used by your media folder.
                                        schema:
                                          type: boolean
                                          default: false
                                      - variable: QBT_SKIP_RECYCLE
                                        label: QBT_SKIP_RECYCLE
                                        description: Use this to skip emptying the Recycle Bin folder (/root_dir/.RecycleBin).
                                        schema:
                                          type: boolean
                                          default: false
                                      - variable: QBT_DRY_RUN
                                        label: QBT_DRY_RUN
                                        description: If you would like to see what is gonna happen but not actually move/delete or tag/categorize anything.
                                        schema:
                                          type: boolean
                                          default: false
                                      - variable: QBT_LOG_LEVEL
                                        label: QBT_LOG_LEVEL
                                        description: Change the output log level.
                                        schema:
                                          type: string
                                          default: INFO
                                      - variable: QBT_DIVIDER
                                        label: QBT_DIVIDER
                                        description: Character that divides the sections.
                                        schema:
                                          type: string
                                          default: "="
                                      - variable: QBT_WIDTH
                                        label: QBT_WIDTH
                                        description: Screen Width.
                                        schema:
                                          type: int
                                          default: 100
# Include{containerBasic}
# Include{containerAdvanced}

# 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}
        - variable: data
          label: App Data/Torrent Storage
          description: Stores the Application Configuration.
          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 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}
