questions.yaml 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. groups:
  2. - name: SABnzbd Configuration
  3. description: Configure SABnzbd
  4. - name: User and Group Configuration
  5. description: Configure User and Group for SABnzbd
  6. - name: Network Configuration
  7. description: Configure Network for SABnzbd
  8. - name: Storage Configuration
  9. description: Configure Storage for SABnzbd
  10. - name: Resources Configuration
  11. description: Configure Resources for SABnzbd
  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: sabnzbdConfig
  23. label: ""
  24. group: SABnzbd Configuration
  25. schema:
  26. type: dict
  27. attrs:
  28. - variable: additionalEnvs
  29. label: Additional Environment Variables
  30. description: Configure additional environment variables for SABnzbd.
  31. schema:
  32. type: list
  33. default: []
  34. items:
  35. - variable: env
  36. label: Environment Variable
  37. schema:
  38. type: dict
  39. attrs:
  40. - variable: name
  41. label: Name
  42. schema:
  43. type: string
  44. required: true
  45. - variable: value
  46. label: Value
  47. schema:
  48. type: string
  49. required: true
  50. - variable: sabnzbdRunAs
  51. label: ""
  52. group: User and Group Configuration
  53. schema:
  54. type: dict
  55. attrs:
  56. - variable: user
  57. label: User ID
  58. description: The user id that SABnzbd will run as.
  59. schema:
  60. type: int
  61. min: 2
  62. default: 568
  63. required: true
  64. - variable: group
  65. label: Group ID
  66. description: The group id that SABnzbd will run as.
  67. schema:
  68. type: int
  69. min: 2
  70. default: 568
  71. required: true
  72. - variable: sabnzbdNetwork
  73. label: ""
  74. group: Network Configuration
  75. schema:
  76. type: dict
  77. attrs:
  78. - variable: webPort
  79. label: Web Port
  80. description: The port for the SABnzbd Web UI.
  81. schema:
  82. type: int
  83. default: 30055
  84. min: 9000
  85. max: 65535
  86. required: true
  87. - variable: hostNetwork
  88. label: Host Network
  89. description: |
  90. Bind to the host network. It's recommended to keep this disabled.</br>
  91. schema:
  92. type: boolean
  93. default: false
  94. - variable: sabnzbdStorage
  95. label: ""
  96. group: Storage Configuration
  97. schema:
  98. type: dict
  99. attrs:
  100. - variable: config
  101. label: SABnzbd Config Storage
  102. description: The path to store SABnzbd Configuration.
  103. schema:
  104. type: dict
  105. attrs:
  106. - variable: type
  107. label: Type
  108. description: |
  109. ixVolume: Is dataset created automatically by the system.</br>
  110. Host Path: Is a path that already exists on the system.
  111. schema:
  112. type: string
  113. required: true
  114. default: "ixVolume"
  115. enum:
  116. - value: "hostPath"
  117. description: Host Path (Path that already exists on the system)
  118. - value: "ixVolume"
  119. description: ixVolume (Dataset created automatically by the system)
  120. - variable: datasetName
  121. label: Dataset Name
  122. schema:
  123. type: string
  124. show_if: [["type", "=", "ixVolume"]]
  125. required: true
  126. hidden: true
  127. immutable: true
  128. default: "config"
  129. $ref:
  130. - "normalize/ixVolume"
  131. - variable: hostPath
  132. label: Host Path
  133. schema:
  134. type: hostpath
  135. show_if: [["type", "=", "hostPath"]]
  136. immutable: true
  137. required: true
  138. - variable: additionalStorages
  139. label: Additional Storage
  140. description: Additional storage for SABnzbd.
  141. schema:
  142. type: list
  143. default: []
  144. items:
  145. - variable: storageEntry
  146. label: Storage Entry
  147. schema:
  148. type: dict
  149. attrs:
  150. - variable: type
  151. label: Type
  152. description: |
  153. ixVolume: Is dataset created automatically by the system.</br>
  154. Host Path: Is a path that already exists on the system.
  155. schema:
  156. type: string
  157. required: true
  158. default: "ixVolume"
  159. enum:
  160. - value: "hostPath"
  161. description: Host Path (Path that already exists on the system)
  162. - value: "ixVolume"
  163. description: ixVolume (Dataset created automatically by the system)
  164. - variable: mountPath
  165. label: Mount Path
  166. description: The path inside the container to mount the storage.
  167. schema:
  168. type: path
  169. required: true
  170. - variable: hostPath
  171. label: Host Path
  172. description: The host path to use for storage.
  173. schema:
  174. type: hostpath
  175. show_if: [["type", "=", "hostPath"]]
  176. required: true
  177. - variable: datasetName
  178. label: Dataset Name
  179. description: The name of the dataset to use for storage.
  180. schema:
  181. type: string
  182. show_if: [["type", "=", "ixVolume"]]
  183. required: true
  184. immutable: true
  185. default: "storage_entry"
  186. $ref:
  187. - "normalize/ixVolume"
  188. - variable: resources
  189. group: Resources Configuration
  190. label: ""
  191. schema:
  192. type: dict
  193. attrs:
  194. - variable: limits
  195. label: Limits
  196. schema:
  197. type: dict
  198. attrs:
  199. - variable: cpu
  200. label: CPU
  201. description: CPU limit for SABnzbd.
  202. schema:
  203. type: string
  204. max_length: 6
  205. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  206. valid_chars_error: |
  207. Valid CPU limit formats are</br>
  208. - Plain Integer - eg. 1</br>
  209. - Float - eg. 0.5</br>
  210. - Milicpu - eg. 500m
  211. default: "4000m"
  212. required: true
  213. - variable: memory
  214. label: Memory
  215. description: Memory limit for SABnzbd.
  216. schema:
  217. type: string
  218. max_length: 12
  219. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  220. valid_chars_error: |
  221. Valid Memory limit formats are</br>
  222. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  223. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  224. - Plain Integer in bytes - eg. 1024</br>
  225. - Exponent - eg. 134e6
  226. default: "8Gi"
  227. required: true