questions.yaml 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657
  1. groups:
  2. - name: Handbrake Configuration
  3. description: Configure Handbrake
  4. - name: User and Group Configuration
  5. description: Configure User and Group for Handbrake
  6. - name: Network Configuration
  7. description: Configure Network for Handbrake
  8. - name: Storage Configuration
  9. description: Configure Storage for Handbrake
  10. - name: Resources Configuration
  11. description: Configure Resources for Handbrake
  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: TZ
  23. group: Handbrake Configuration
  24. label: Timezone
  25. schema:
  26. type: string
  27. default: Etc/UTC
  28. required: true
  29. $ref:
  30. - definitions/timezone
  31. - variable: handbrakeConfig
  32. label: ""
  33. group: Handbrake Configuration
  34. schema:
  35. type: dict
  36. attrs:
  37. - variable: darkMode
  38. label: Dark Mode
  39. description: Enable dark mode for Handbrake.
  40. schema:
  41. type: boolean
  42. default: false
  43. - variable: vncPassword
  44. label: VNC Password
  45. description: The password for the VNC UI.
  46. schema:
  47. type: string
  48. default: ""
  49. private: true
  50. - variable: secureConnection
  51. label: Secure Connection
  52. description: Enable secure connection for Handbrake.
  53. schema:
  54. type: boolean
  55. default: false
  56. - variable: additionalEnvs
  57. label: Additional Environment Variables
  58. description: Configure additional environment variables for Handbrake.
  59. schema:
  60. type: list
  61. default: []
  62. items:
  63. - variable: env
  64. label: Environment Variable
  65. schema:
  66. type: dict
  67. attrs:
  68. - variable: name
  69. label: Name
  70. schema:
  71. type: string
  72. required: true
  73. - variable: value
  74. label: Value
  75. schema:
  76. type: string
  77. required: true
  78. - variable: handbrakeID
  79. label: ""
  80. group: User and Group Configuration
  81. schema:
  82. type: dict
  83. attrs:
  84. - variable: user
  85. label: User ID
  86. description: The user id that Handbrake files will be owned by.
  87. schema:
  88. type: int
  89. min: 568
  90. default: 568
  91. required: true
  92. - variable: group
  93. label: Group ID
  94. description: The group id that Handbrake files will be owned by.
  95. schema:
  96. type: int
  97. min: 568
  98. default: 568
  99. required: true
  100. - variable: handbrakeNetwork
  101. label: ""
  102. group: Network Configuration
  103. schema:
  104. type: dict
  105. attrs:
  106. - variable: webPort
  107. label: Web Port
  108. description: The port for the Handbrake Web UI.
  109. schema:
  110. type: int
  111. default: 31010
  112. min: 9000
  113. max: 65535
  114. required: true
  115. - variable: vncPort
  116. label: VNC Port
  117. description: The port for the Handbrake VNC UI.
  118. schema:
  119. type: int
  120. default: 31011
  121. min: 9000
  122. max: 65535
  123. required: true
  124. - variable: hostNetwork
  125. label: Host Network
  126. description: |
  127. Bind to the host network. It's recommended to keep this disabled.</br>
  128. schema:
  129. type: boolean
  130. default: false
  131. - variable: handbrakeStorage
  132. label: ""
  133. group: Storage Configuration
  134. schema:
  135. type: dict
  136. attrs:
  137. - variable: config
  138. label: Handbrake Config Storage
  139. description: The path to store Handbrake Configuration.
  140. schema:
  141. type: dict
  142. attrs:
  143. - variable: type
  144. label: Type
  145. description: |
  146. ixVolume: Is dataset created automatically by the system.</br>
  147. Host Path: Is a path that already exists on the system.
  148. schema:
  149. type: string
  150. required: true
  151. immutable: true
  152. default: "ixVolume"
  153. enum:
  154. - value: "hostPath"
  155. description: Host Path (Path that already exists on the system)
  156. - value: "ixVolume"
  157. description: ixVolume (Dataset created automatically by the system)
  158. - variable: ixVolumeConfig
  159. label: ixVolume Configuration
  160. description: The configuration for the ixVolume dataset.
  161. schema:
  162. type: dict
  163. show_if: [["type", "=", "ixVolume"]]
  164. $ref:
  165. - "normalize/ixVolume"
  166. attrs:
  167. - variable: aclEnable
  168. label: Enable ACL
  169. description: Enable ACL for the dataset.
  170. schema:
  171. type: boolean
  172. default: false
  173. - variable: datasetName
  174. label: Dataset Name
  175. description: The name of the dataset to use for storage.
  176. schema:
  177. type: string
  178. required: true
  179. immutable: true
  180. hidden: true
  181. default: "config"
  182. - variable: aclEntries
  183. label: ACL Configuration
  184. schema:
  185. type: dict
  186. show_if: [["aclEnable", "=", true]]
  187. attrs: []
  188. - variable: hostPathConfig
  189. label: Host Path Configuration
  190. schema:
  191. type: dict
  192. show_if: [["type", "=", "hostPath"]]
  193. attrs:
  194. - variable: aclEnable
  195. label: Enable ACL
  196. description: Enable ACL for the dataset.
  197. schema:
  198. type: boolean
  199. default: false
  200. - variable: acl
  201. label: ACL Configuration
  202. schema:
  203. type: dict
  204. show_if: [["aclEnable", "=", true]]
  205. attrs: []
  206. $ref:
  207. - "normalize/acl"
  208. - variable: hostPath
  209. label: Host Path
  210. description: The host path to use for storage.
  211. schema:
  212. type: hostpath
  213. show_if: [["aclEnable", "=", false]]
  214. required: true
  215. - variable: storage
  216. label: Handbrake Download Storage
  217. description: The path to store Handbrake Storage.
  218. schema:
  219. type: dict
  220. attrs:
  221. - variable: type
  222. label: Type
  223. description: |
  224. ixVolume: Is dataset created automatically by the system.</br>
  225. Host Path: Is a path that already exists on the system.
  226. schema:
  227. type: string
  228. required: true
  229. immutable: true
  230. default: "ixVolume"
  231. enum:
  232. - value: "hostPath"
  233. description: Host Path (Path that already exists on the system)
  234. - value: "ixVolume"
  235. description: ixVolume (Dataset created automatically by the system)
  236. - variable: readOnly
  237. label: Read Only
  238. description: Mount the volume as read only.
  239. schema:
  240. type: boolean
  241. default: false
  242. - variable: ixVolumeConfig
  243. label: ixVolume Configuration
  244. description: The configuration for the ixVolume dataset.
  245. schema:
  246. type: dict
  247. show_if: [["type", "=", "ixVolume"]]
  248. $ref:
  249. - "normalize/ixVolume"
  250. attrs:
  251. - variable: aclEnable
  252. label: Enable ACL
  253. description: Enable ACL for the dataset.
  254. schema:
  255. type: boolean
  256. default: false
  257. - variable: datasetName
  258. label: Dataset Name
  259. description: The name of the dataset to use for storage.
  260. schema:
  261. type: string
  262. required: true
  263. immutable: true
  264. hidden: true
  265. default: "storage"
  266. - variable: aclEntries
  267. label: ACL Configuration
  268. schema:
  269. type: dict
  270. show_if: [["aclEnable", "=", true]]
  271. attrs: []
  272. - variable: hostPathConfig
  273. label: Host Path Configuration
  274. schema:
  275. type: dict
  276. show_if: [["type", "=", "hostPath"]]
  277. attrs:
  278. - variable: aclEnable
  279. label: Enable ACL
  280. description: Enable ACL for the dataset.
  281. schema:
  282. type: boolean
  283. default: false
  284. - variable: acl
  285. label: ACL Configuration
  286. schema:
  287. type: dict
  288. show_if: [["aclEnable", "=", true]]
  289. attrs: []
  290. $ref:
  291. - "normalize/acl"
  292. - variable: hostPath
  293. label: Host Path
  294. description: The host path to use for storage.
  295. schema:
  296. type: hostpath
  297. show_if: [["aclEnable", "=", false]]
  298. required: true
  299. - variable: output
  300. label: Handbrake Output Storage
  301. description: The path to store Handbrake Output.
  302. schema:
  303. type: dict
  304. attrs:
  305. - variable: type
  306. label: Type
  307. description: |
  308. ixVolume: Is dataset created automatically by the system.</br>
  309. Host Path: Is a path that already exists on the system.
  310. schema:
  311. type: string
  312. required: true
  313. immutable: true
  314. default: "ixVolume"
  315. enum:
  316. - value: "hostPath"
  317. description: Host Path (Path that already exists on the system)
  318. - value: "ixVolume"
  319. description: ixVolume (Dataset created automatically by the system)
  320. - variable: ixVolumeConfig
  321. label: ixVolume Configuration
  322. description: The configuration for the ixVolume dataset.
  323. schema:
  324. type: dict
  325. show_if: [["type", "=", "ixVolume"]]
  326. $ref:
  327. - "normalize/ixVolume"
  328. attrs:
  329. - variable: aclEnable
  330. label: Enable ACL
  331. description: Enable ACL for the dataset.
  332. schema:
  333. type: boolean
  334. default: false
  335. - variable: datasetName
  336. label: Dataset Name
  337. description: The name of the dataset to use for storage.
  338. schema:
  339. type: string
  340. required: true
  341. immutable: true
  342. hidden: true
  343. default: "output"
  344. - variable: aclEntries
  345. label: ACL Configuration
  346. schema:
  347. type: dict
  348. show_if: [["aclEnable", "=", true]]
  349. attrs: []
  350. - variable: hostPathConfig
  351. label: Host Path Configuration
  352. schema:
  353. type: dict
  354. show_if: [["type", "=", "hostPath"]]
  355. attrs:
  356. - variable: aclEnable
  357. label: Enable ACL
  358. description: Enable ACL for the dataset.
  359. schema:
  360. type: boolean
  361. default: false
  362. - variable: acl
  363. label: ACL Configuration
  364. schema:
  365. type: dict
  366. show_if: [["aclEnable", "=", true]]
  367. attrs: []
  368. $ref:
  369. - "normalize/acl"
  370. - variable: hostPath
  371. label: Host Path
  372. description: The host path to use for storage.
  373. schema:
  374. type: hostpath
  375. show_if: [["aclEnable", "=", false]]
  376. required: true
  377. - variable: watch
  378. label: Handbrake Watch Storage
  379. description: The path to store Handbrake Watch.
  380. schema:
  381. type: dict
  382. attrs:
  383. - variable: type
  384. label: Type
  385. description: |
  386. ixVolume: Is dataset created automatically by the system.</br>
  387. Host Path: Is a path that already exists on the system.
  388. schema:
  389. type: string
  390. required: true
  391. immutable: true
  392. default: "ixVolume"
  393. enum:
  394. - value: "hostPath"
  395. description: Host Path (Path that already exists on the system)
  396. - value: "ixVolume"
  397. description: ixVolume (Dataset created automatically by the system)
  398. - variable: ixVolumeConfig
  399. label: ixVolume Configuration
  400. description: The configuration for the ixVolume dataset.
  401. schema:
  402. type: dict
  403. show_if: [["type", "=", "ixVolume"]]
  404. $ref:
  405. - "normalize/ixVolume"
  406. attrs:
  407. - variable: aclEnable
  408. label: Enable ACL
  409. description: Enable ACL for the dataset.
  410. schema:
  411. type: boolean
  412. default: false
  413. - variable: datasetName
  414. label: Dataset Name
  415. description: The name of the dataset to use for storage.
  416. schema:
  417. type: string
  418. required: true
  419. immutable: true
  420. hidden: true
  421. default: "watch"
  422. - variable: aclEntries
  423. label: ACL Configuration
  424. schema:
  425. type: dict
  426. show_if: [["aclEnable", "=", true]]
  427. attrs: []
  428. - variable: hostPathConfig
  429. label: Host Path Configuration
  430. schema:
  431. type: dict
  432. show_if: [["type", "=", "hostPath"]]
  433. attrs:
  434. - variable: aclEnable
  435. label: Enable ACL
  436. description: Enable ACL for the dataset.
  437. schema:
  438. type: boolean
  439. default: false
  440. - variable: acl
  441. label: ACL Configuration
  442. schema:
  443. type: dict
  444. show_if: [["aclEnable", "=", true]]
  445. attrs: []
  446. $ref:
  447. - "normalize/acl"
  448. - variable: hostPath
  449. label: Host Path
  450. description: The host path to use for storage.
  451. schema:
  452. type: hostpath
  453. show_if: [["aclEnable", "=", false]]
  454. required: true
  455. - variable: additionalStorages
  456. label: Additional Storage
  457. description: Additional storage for Handbrake.
  458. schema:
  459. type: list
  460. default: []
  461. items:
  462. - variable: storageEntry
  463. label: Storage Entry
  464. schema:
  465. type: dict
  466. attrs:
  467. - variable: type
  468. label: Type
  469. description: |
  470. ixVolume: Is dataset created automatically by the system.</br>
  471. Host Path: Is a path that already exists on the system.</br>
  472. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  473. schema:
  474. type: string
  475. required: true
  476. default: "ixVolume"
  477. immutable: true
  478. enum:
  479. - value: "hostPath"
  480. description: Host Path (Path that already exists on the system)
  481. - value: "ixVolume"
  482. description: ixVolume (Dataset created automatically by the system)
  483. - value: "smb-pv-pvc"
  484. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  485. - variable: readOnly
  486. label: Read Only
  487. description: Mount the volume as read only.
  488. schema:
  489. type: boolean
  490. default: false
  491. - variable: mountPath
  492. label: Mount Path
  493. description: The path inside the container to mount the storage.
  494. schema:
  495. type: path
  496. required: true
  497. - variable: hostPathConfig
  498. label: Host Path Configuration
  499. schema:
  500. type: dict
  501. show_if: [["type", "=", "hostPath"]]
  502. attrs:
  503. - variable: aclEnable
  504. label: Enable ACL
  505. description: Enable ACL for the dataset.
  506. schema:
  507. type: boolean
  508. default: false
  509. - variable: acl
  510. label: ACL Configuration
  511. schema:
  512. type: dict
  513. show_if: [["aclEnable", "=", true]]
  514. attrs: []
  515. $ref:
  516. - "normalize/acl"
  517. - variable: hostPath
  518. label: Host Path
  519. description: The host path to use for storage.
  520. schema:
  521. type: hostpath
  522. show_if: [["aclEnable", "=", false]]
  523. required: true
  524. - variable: ixVolumeConfig
  525. label: ixVolume Configuration
  526. description: The configuration for the ixVolume dataset.
  527. schema:
  528. type: dict
  529. show_if: [["type", "=", "ixVolume"]]
  530. $ref:
  531. - "normalize/ixVolume"
  532. attrs:
  533. - variable: aclEnable
  534. label: Enable ACL
  535. description: Enable ACL for the dataset.
  536. schema:
  537. type: boolean
  538. default: false
  539. - variable: datasetName
  540. label: Dataset Name
  541. description: The name of the dataset to use for storage.
  542. schema:
  543. type: string
  544. required: true
  545. immutable: true
  546. default: "storage_entry"
  547. - variable: aclEntries
  548. label: ACL Configuration
  549. schema:
  550. type: dict
  551. show_if: [["aclEnable", "=", true]]
  552. attrs: []
  553. - variable: smbConfig
  554. label: SMB Share Configuration
  555. description: The configuration for the SMB Share.
  556. schema:
  557. type: dict
  558. show_if: [["type", "=", "smb-pv-pvc"]]
  559. attrs:
  560. - variable: server
  561. label: Server
  562. description: The server for the SMB share.
  563. schema:
  564. type: string
  565. required: true
  566. - variable: share
  567. label: Share
  568. description: The share name for the SMB share.
  569. schema:
  570. type: string
  571. required: true
  572. - variable: domain
  573. label: Domain (Optional)
  574. description: The domain for the SMB share.
  575. schema:
  576. type: string
  577. - variable: username
  578. label: Username
  579. description: The username for the SMB share.
  580. schema:
  581. type: string
  582. required: true
  583. - variable: password
  584. label: Password
  585. description: The password for the SMB share.
  586. schema:
  587. type: string
  588. required: true
  589. private: true
  590. - variable: size
  591. label: Size (in Gi)
  592. description: The size of the volume quota.
  593. schema:
  594. type: int
  595. required: true
  596. min: 1
  597. default: 1
  598. - variable: resources
  599. group: Resources Configuration
  600. label: ""
  601. schema:
  602. type: dict
  603. attrs:
  604. - variable: limits
  605. label: Limits
  606. schema:
  607. type: dict
  608. attrs:
  609. - variable: cpu
  610. label: CPU
  611. description: CPU limit for Handbrake.
  612. schema:
  613. type: string
  614. max_length: 6
  615. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  616. valid_chars_error: |
  617. Valid CPU limit formats are</br>
  618. - Plain Integer - eg. 1</br>
  619. - Float - eg. 0.5</br>
  620. - Milicpu - eg. 500m
  621. default: "4000m"
  622. required: true
  623. - variable: memory
  624. label: Memory
  625. description: Memory limit for Handbrake.
  626. schema:
  627. type: string
  628. max_length: 12
  629. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  630. valid_chars_error: |
  631. Valid Memory limit formats are</br>
  632. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  633. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  634. - Plain Integer in bytes - eg. 1024</br>
  635. - Exponent - eg. 134e6
  636. default: "8Gi"
  637. required: true
  638. - variable: handbrakeGPU
  639. group: Resources Configuration
  640. label: GPU Configuration
  641. schema:
  642. type: dict
  643. $ref:
  644. - "definitions/gpuConfiguration"
  645. attrs: []