questions.yaml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375
  1. groups:
  2. - name: Sonarr Configuration
  3. description: Configure Sonarr
  4. - name: User and Group Configuration
  5. description: Configure User and Group for Sonarr
  6. - name: Network Configuration
  7. description: Configure Network for Sonarr
  8. - name: Storage Configuration
  9. description: Configure Storage for Sonarr
  10. - name: Resources Configuration
  11. description: Configure Resources for Sonarr
  12. portals:
  13. web_portal:
  14. protocols:
  15. - "$kubernetes-resource_configmap_portal_protocol"
  16. host:
  17. - "$kubernetes-resource_configmap_portal_host"
  18. ports:
  19. - "$kubernetes-resource_configmap_portal_port"
  20. path: "$kubernetes-resource_configmap_portal_path"
  21. questions:
  22. - variable: sonarrConfig
  23. label: ""
  24. group: Sonarr Configuration
  25. schema:
  26. type: dict
  27. attrs:
  28. - variable: instanceName
  29. label: Instance Name
  30. description: The name of the Sonarr instance.
  31. schema:
  32. type: string
  33. default: "Sonarr"
  34. required: true
  35. - variable: additionalEnvs
  36. label: Additional Environment Variables
  37. description: Configure additional environment variables for Sonarr.
  38. schema:
  39. type: list
  40. default: []
  41. items:
  42. - variable: env
  43. label: Environment Variable
  44. schema:
  45. type: dict
  46. attrs:
  47. - variable: name
  48. label: Name
  49. schema:
  50. type: string
  51. required: true
  52. - variable: value
  53. label: Value
  54. schema:
  55. type: string
  56. required: true
  57. - variable: sonarrRunAs
  58. label: ""
  59. group: User and Group Configuration
  60. schema:
  61. type: dict
  62. attrs:
  63. - variable: user
  64. label: User ID
  65. description: The user id that Sonarr will run as.
  66. schema:
  67. type: int
  68. min: 2
  69. default: 568
  70. required: true
  71. - variable: group
  72. label: Group ID
  73. description: The group id that Sonarr will run as.
  74. schema:
  75. type: int
  76. min: 2
  77. default: 568
  78. required: true
  79. - variable: sonarrNetwork
  80. label: ""
  81. group: Network Configuration
  82. schema:
  83. type: dict
  84. attrs:
  85. - variable: webPort
  86. label: Web Port
  87. description: The port for the Sonarr Web UI.
  88. schema:
  89. type: int
  90. default: 30027
  91. min: 9000
  92. max: 65535
  93. required: true
  94. - variable: hostNetwork
  95. label: Host Network
  96. description: |
  97. Bind to the host network. It's recommended to keep this disabled.</br>
  98. schema:
  99. type: boolean
  100. default: false
  101. - variable: sonarrStorage
  102. label: ""
  103. group: Storage Configuration
  104. schema:
  105. type: dict
  106. attrs:
  107. - variable: config
  108. label: Sonarr Config Storage
  109. description: The path to store Sonarr Configuration.
  110. schema:
  111. type: dict
  112. attrs:
  113. - variable: type
  114. label: Type
  115. description: |
  116. ixVolume: Is dataset created automatically by the system.</br>
  117. Host Path: Is a path that already exists on the system.
  118. schema:
  119. type: string
  120. required: true
  121. immutable: true
  122. default: "ixVolume"
  123. enum:
  124. - value: "hostPath"
  125. description: Host Path (Path that already exists on the system)
  126. - value: "ixVolume"
  127. description: ixVolume (Dataset created automatically by the system)
  128. - variable: ixVolumeConfig
  129. label: ixVolume Configuration
  130. description: The configuration for the ixVolume dataset.
  131. schema:
  132. type: dict
  133. show_if: [["type", "=", "ixVolume"]]
  134. $ref:
  135. - "normalize/ixVolume"
  136. attrs:
  137. - variable: aclEnable
  138. label: Enable ACL
  139. description: Enable ACL for the dataset.
  140. schema:
  141. type: boolean
  142. default: false
  143. - variable: datasetName
  144. label: Dataset Name
  145. description: The name of the dataset to use for storage.
  146. schema:
  147. type: string
  148. required: true
  149. immutable: true
  150. hidden: true
  151. default: "config"
  152. - variable: aclEntries
  153. label: ACL Configuration
  154. schema:
  155. type: dict
  156. show_if: [["aclEnable", "=", true]]
  157. attrs: []
  158. - variable: hostPathConfig
  159. label: Host Path Configuration
  160. schema:
  161. type: dict
  162. show_if: [["type", "=", "hostPath"]]
  163. attrs:
  164. - variable: aclEnable
  165. label: Enable ACL
  166. description: Enable ACL for the dataset.
  167. schema:
  168. type: boolean
  169. default: false
  170. - variable: acl
  171. label: ACL Configuration
  172. schema:
  173. type: dict
  174. show_if: [["aclEnable", "=", true]]
  175. attrs: []
  176. $ref:
  177. - "normalize/acl"
  178. - variable: hostPath
  179. label: Host Path
  180. description: The host path to use for storage.
  181. schema:
  182. type: hostpath
  183. show_if: [["aclEnable", "=", false]]
  184. immutable: true
  185. required: true
  186. - variable: additionalStorages
  187. label: Additional Storage
  188. description: Additional storage for Sonarr.
  189. schema:
  190. type: list
  191. default: []
  192. items:
  193. - variable: storageEntry
  194. label: Storage Entry
  195. schema:
  196. type: dict
  197. attrs:
  198. - variable: type
  199. label: Type
  200. description: |
  201. ixVolume: Is dataset created automatically by the system.</br>
  202. Host Path: Is a path that already exists on the system.</br>
  203. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  204. schema:
  205. type: string
  206. required: true
  207. default: "ixVolume"
  208. immutable: true
  209. enum:
  210. - value: "hostPath"
  211. description: Host Path (Path that already exists on the system)
  212. - value: "ixVolume"
  213. description: ixVolume (Dataset created automatically by the system)
  214. - value: "smb-pv-pvc"
  215. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  216. - variable: readOnly
  217. label: Read Only
  218. description: Mount the volume as read only.
  219. schema:
  220. type: boolean
  221. default: false
  222. - variable: mountPath
  223. label: Mount Path
  224. description: The path inside the container to mount the storage.
  225. schema:
  226. type: path
  227. required: true
  228. - variable: hostPathConfig
  229. label: Host Path Configuration
  230. schema:
  231. type: dict
  232. show_if: [["type", "=", "hostPath"]]
  233. attrs:
  234. - variable: aclEnable
  235. label: Enable ACL
  236. description: Enable ACL for the dataset.
  237. schema:
  238. type: boolean
  239. default: false
  240. - variable: acl
  241. label: ACL Configuration
  242. schema:
  243. type: dict
  244. show_if: [["aclEnable", "=", true]]
  245. attrs: []
  246. $ref:
  247. - "normalize/acl"
  248. - variable: hostPath
  249. label: Host Path
  250. description: The host path to use for storage.
  251. schema:
  252. type: hostpath
  253. show_if: [["aclEnable", "=", false]]
  254. immutable: true
  255. required: true
  256. - variable: ixVolumeConfig
  257. label: ixVolume Configuration
  258. description: The configuration for the ixVolume dataset.
  259. schema:
  260. type: dict
  261. show_if: [["type", "=", "ixVolume"]]
  262. $ref:
  263. - "normalize/ixVolume"
  264. attrs:
  265. - variable: aclEnable
  266. label: Enable ACL
  267. description: Enable ACL for the dataset.
  268. schema:
  269. type: boolean
  270. default: false
  271. - variable: datasetName
  272. label: Dataset Name
  273. description: The name of the dataset to use for storage.
  274. schema:
  275. type: string
  276. required: true
  277. immutable: true
  278. default: "storage_entry"
  279. - variable: aclEntries
  280. label: ACL Configuration
  281. schema:
  282. type: dict
  283. show_if: [["aclEnable", "=", true]]
  284. attrs: []
  285. - variable: smbConfig
  286. label: SMB Share Configuration
  287. description: The configuration for the SMB Share.
  288. schema:
  289. type: dict
  290. show_if: [["type", "=", "smb-pv-pvc"]]
  291. attrs:
  292. - variable: server
  293. label: Server
  294. description: The server for the SMB share.
  295. schema:
  296. type: string
  297. required: true
  298. - variable: share
  299. label: Share
  300. description: The share name for the SMB share.
  301. schema:
  302. type: string
  303. required: true
  304. - variable: domain
  305. label: Domain (Optional)
  306. description: The domain for the SMB share.
  307. schema:
  308. type: string
  309. - variable: username
  310. label: Username
  311. description: The username for the SMB share.
  312. schema:
  313. type: string
  314. required: true
  315. - variable: password
  316. label: Password
  317. description: The password for the SMB share.
  318. schema:
  319. type: string
  320. required: true
  321. private: true
  322. - variable: size
  323. label: Size (in Gi)
  324. description: The size of the volume quota.
  325. schema:
  326. type: int
  327. required: true
  328. min: 1
  329. default: 1
  330. - variable: resources
  331. group: Resources Configuration
  332. label: ""
  333. schema:
  334. type: dict
  335. attrs:
  336. - variable: limits
  337. label: Limits
  338. schema:
  339. type: dict
  340. attrs:
  341. - variable: cpu
  342. label: CPU
  343. description: CPU limit for Sonarr.
  344. schema:
  345. type: string
  346. max_length: 6
  347. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  348. valid_chars_error: |
  349. Valid CPU limit formats are</br>
  350. - Plain Integer - eg. 1</br>
  351. - Float - eg. 0.5</br>
  352. - Milicpu - eg. 500m
  353. default: "4000m"
  354. required: true
  355. - variable: memory
  356. label: Memory
  357. description: Memory limit for Sonarr.
  358. schema:
  359. type: string
  360. max_length: 12
  361. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  362. valid_chars_error: |
  363. Valid Memory limit formats are</br>
  364. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  365. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  366. - Plain Integer in bytes - eg. 1024</br>
  367. - Exponent - eg. 134e6
  368. default: "8Gi"
  369. required: true