questions.yaml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  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: datasetName
  129. label: Dataset Name
  130. schema:
  131. type: string
  132. show_if: [["type", "=", "ixVolume"]]
  133. required: true
  134. hidden: true
  135. immutable: true
  136. default: "config"
  137. $ref:
  138. - "normalize/ixVolume"
  139. - variable: hostPath
  140. label: Host Path
  141. schema:
  142. type: hostpath
  143. show_if: [["type", "=", "hostPath"]]
  144. immutable: true
  145. required: true
  146. - variable: additionalStorages
  147. label: Additional Storage
  148. description: Additional storage for Sonarr.
  149. schema:
  150. type: list
  151. default: []
  152. items:
  153. - variable: storageEntry
  154. label: Storage Entry
  155. schema:
  156. type: dict
  157. attrs:
  158. - variable: type
  159. label: Type
  160. description: |
  161. ixVolume: Is dataset created automatically by the system.</br>
  162. Host Path: Is a path that already exists on the system.</br>
  163. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  164. schema:
  165. type: string
  166. required: true
  167. default: "ixVolume"
  168. immutable: true
  169. enum:
  170. - value: "hostPath"
  171. description: Host Path (Path that already exists on the system)
  172. - value: "ixVolume"
  173. description: ixVolume (Dataset created automatically by the system)
  174. - value: "smb-pv-pvc"
  175. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  176. - variable: mountPath
  177. label: Mount Path
  178. description: The path inside the container to mount the storage.
  179. schema:
  180. type: path
  181. required: true
  182. - variable: hostPath
  183. label: Host Path
  184. description: The host path to use for storage.
  185. schema:
  186. type: hostpath
  187. show_if: [["type", "=", "hostPath"]]
  188. required: true
  189. - variable: datasetName
  190. label: Dataset Name
  191. description: The name of the dataset to use for storage.
  192. schema:
  193. type: string
  194. show_if: [["type", "=", "ixVolume"]]
  195. required: true
  196. immutable: true
  197. default: "storage_entry"
  198. $ref:
  199. - "normalize/ixVolume"
  200. - variable: server
  201. label: Server
  202. description: The server for the SMB share.
  203. schema:
  204. type: string
  205. show_if: [["type", "=", "smb-pv-pvc"]]
  206. required: true
  207. - variable: share
  208. label: Share
  209. description: The share name for the SMB share.
  210. schema:
  211. type: string
  212. show_if: [["type", "=", "smb-pv-pvc"]]
  213. required: true
  214. - variable: domain
  215. label: Domain (Optional)
  216. description: The domain for the SMB share.
  217. schema:
  218. type: string
  219. show_if: [["type", "=", "smb-pv-pvc"]]
  220. - variable: username
  221. label: Username
  222. description: The username for the SMB share.
  223. schema:
  224. type: string
  225. show_if: [["type", "=", "smb-pv-pvc"]]
  226. required: true
  227. - variable: password
  228. label: Password
  229. description: The password for the SMB share.
  230. schema:
  231. type: string
  232. show_if: [["type", "=", "smb-pv-pvc"]]
  233. required: true
  234. private: true
  235. - variable: size
  236. label: Size (in Gi)
  237. description: The size of the volume quota.
  238. schema:
  239. type: int
  240. show_if: [["type", "=", "smb-pv-pvc"]]
  241. required: true
  242. min: 1
  243. default: 1
  244. - variable: resources
  245. group: Resources Configuration
  246. label: ""
  247. schema:
  248. type: dict
  249. attrs:
  250. - variable: limits
  251. label: Limits
  252. schema:
  253. type: dict
  254. attrs:
  255. - variable: cpu
  256. label: CPU
  257. description: CPU limit for Sonarr.
  258. schema:
  259. type: string
  260. max_length: 6
  261. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  262. valid_chars_error: |
  263. Valid CPU limit formats are</br>
  264. - Plain Integer - eg. 1</br>
  265. - Float - eg. 0.5</br>
  266. - Milicpu - eg. 500m
  267. default: "4000m"
  268. required: true
  269. - variable: memory
  270. label: Memory
  271. description: Memory limit for Sonarr.
  272. schema:
  273. type: string
  274. max_length: 12
  275. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  276. valid_chars_error: |
  277. Valid Memory limit formats are</br>
  278. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  279. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  280. - Plain Integer in bytes - eg. 1024</br>
  281. - Exponent - eg. 134e6
  282. default: "8Gi"
  283. required: true