questions.yaml 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617
  1. groups:
  2. - name: PiGallery2 Configuration
  3. description: Configure PiGallery2
  4. - name: User and Group Configuration
  5. description: Configure User and Group for PiGallery2
  6. - name: Network Configuration
  7. description: Configure Network for PiGallery2
  8. - name: Storage Configuration
  9. description: Configure Storage for PiGallery2
  10. - name: Resources Configuration
  11. description: Configure Resources for PiGallery2
  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: pigalleryConfig
  23. label: ""
  24. group: PiGallery2 Configuration
  25. schema:
  26. type: dict
  27. attrs:
  28. - variable: applicationTitle
  29. label: Application Title
  30. description: The title of the PiGallery2 application.
  31. schema:
  32. type: string
  33. default: "PiGallery 2"
  34. required: true
  35. - variable: additionalEnvs
  36. label: Additional Environment Variables
  37. description: Configure additional environment variables for PiGallery2.
  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: pigalleryRunAs
  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 PiGallery2 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 PiGallery2 will run as.
  74. schema:
  75. type: int
  76. min: 2
  77. default: 568
  78. required: true
  79. - variable: pigalleryNetwork
  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 PiGallery2 Web UI.
  88. schema:
  89. type: int
  90. default: 30099
  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: pigalleryStorage
  102. label: ""
  103. group: Storage Configuration
  104. schema:
  105. type: dict
  106. attrs:
  107. - variable: config
  108. label: PiGallery2 Config Storage
  109. description: The path to store PiGallery2 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. required: true
  185. - variable: db
  186. label: PiGallery2 Database Storage
  187. description: The path to store PiGallery2 Database.
  188. schema:
  189. type: dict
  190. attrs:
  191. - variable: type
  192. label: Type
  193. description: |
  194. ixVolume: Is dataset created automatically by the system.</br>
  195. Host Path: Is a path that already exists on the system.
  196. schema:
  197. type: string
  198. required: true
  199. immutable: true
  200. default: "ixVolume"
  201. enum:
  202. - value: "hostPath"
  203. description: Host Path (Path that already exists on the system)
  204. - value: "ixVolume"
  205. description: ixVolume (Dataset created automatically by the system)
  206. - variable: ixVolumeConfig
  207. label: ixVolume Configuration
  208. description: The configuration for the ixVolume dataset.
  209. schema:
  210. type: dict
  211. show_if: [["type", "=", "ixVolume"]]
  212. $ref:
  213. - "normalize/ixVolume"
  214. attrs:
  215. - variable: aclEnable
  216. label: Enable ACL
  217. description: Enable ACL for the dataset.
  218. schema:
  219. type: boolean
  220. default: false
  221. - variable: datasetName
  222. label: Dataset Name
  223. description: The name of the dataset to use for storage.
  224. schema:
  225. type: string
  226. required: true
  227. immutable: true
  228. hidden: true
  229. default: "db"
  230. - variable: aclEntries
  231. label: ACL Configuration
  232. schema:
  233. type: dict
  234. show_if: [["aclEnable", "=", true]]
  235. attrs: []
  236. - variable: hostPathConfig
  237. label: Host Path Configuration
  238. schema:
  239. type: dict
  240. show_if: [["type", "=", "hostPath"]]
  241. attrs:
  242. - variable: aclEnable
  243. label: Enable ACL
  244. description: Enable ACL for the dataset.
  245. schema:
  246. type: boolean
  247. default: false
  248. - variable: acl
  249. label: ACL Configuration
  250. schema:
  251. type: dict
  252. show_if: [["aclEnable", "=", true]]
  253. attrs: []
  254. $ref:
  255. - "normalize/acl"
  256. - variable: hostPath
  257. label: Host Path
  258. description: The host path to use for storage.
  259. schema:
  260. type: hostpath
  261. show_if: [["aclEnable", "=", false]]
  262. required: true
  263. - variable: media
  264. label: PiGallery2 Media Storage
  265. description: The path to store PiGallery2 Media.
  266. schema:
  267. type: dict
  268. attrs:
  269. - variable: type
  270. label: Type
  271. description: |
  272. ixVolume: Is dataset created automatically by the system.</br>
  273. Host Path: Is a path that already exists on the system.
  274. schema:
  275. type: string
  276. required: true
  277. immutable: true
  278. default: "ixVolume"
  279. enum:
  280. - value: "hostPath"
  281. description: Host Path (Path that already exists on the system)
  282. - value: "ixVolume"
  283. description: ixVolume (Dataset created automatically by the system)
  284. - variable: readOnly
  285. label: Read Only
  286. description: Mount the volume as read only.
  287. schema:
  288. type: boolean
  289. default: false
  290. - variable: ixVolumeConfig
  291. label: ixVolume Configuration
  292. description: The configuration for the ixVolume dataset.
  293. schema:
  294. type: dict
  295. show_if: [["type", "=", "ixVolume"]]
  296. $ref:
  297. - "normalize/ixVolume"
  298. attrs:
  299. - variable: aclEnable
  300. label: Enable ACL
  301. description: Enable ACL for the dataset.
  302. schema:
  303. type: boolean
  304. default: false
  305. - variable: datasetName
  306. label: Dataset Name
  307. description: The name of the dataset to use for storage.
  308. schema:
  309. type: string
  310. required: true
  311. immutable: true
  312. hidden: true
  313. default: "media"
  314. - variable: aclEntries
  315. label: ACL Configuration
  316. schema:
  317. type: dict
  318. show_if: [["aclEnable", "=", true]]
  319. attrs: []
  320. - variable: hostPathConfig
  321. label: Host Path Configuration
  322. schema:
  323. type: dict
  324. show_if: [["type", "=", "hostPath"]]
  325. attrs:
  326. - variable: aclEnable
  327. label: Enable ACL
  328. description: Enable ACL for the dataset.
  329. schema:
  330. type: boolean
  331. default: false
  332. - variable: acl
  333. label: ACL Configuration
  334. schema:
  335. type: dict
  336. show_if: [["aclEnable", "=", true]]
  337. attrs: []
  338. $ref:
  339. - "normalize/acl"
  340. - variable: hostPath
  341. label: Host Path
  342. description: The host path to use for storage.
  343. schema:
  344. type: hostpath
  345. show_if: [["aclEnable", "=", false]]
  346. required: true
  347. - variable: thumbnails
  348. label: PiGallery2 Thumbnails Storage
  349. description: The path to store PiGallery2 Thumbnails.
  350. schema:
  351. type: dict
  352. attrs:
  353. - variable: type
  354. label: Type
  355. description: |
  356. ixVolume: Is dataset created automatically by the system.</br>
  357. Host Path: Is a path that already exists on the system.
  358. schema:
  359. type: string
  360. required: true
  361. immutable: true
  362. default: "ixVolume"
  363. enum:
  364. - value: "hostPath"
  365. description: Host Path (Path that already exists on the system)
  366. - value: "ixVolume"
  367. description: ixVolume (Dataset created automatically by the system)
  368. - variable: ixVolumeConfig
  369. label: ixVolume Configuration
  370. description: The configuration for the ixVolume dataset.
  371. schema:
  372. type: dict
  373. show_if: [["type", "=", "ixVolume"]]
  374. $ref:
  375. - "normalize/ixVolume"
  376. attrs:
  377. - variable: aclEnable
  378. label: Enable ACL
  379. description: Enable ACL for the dataset.
  380. schema:
  381. type: boolean
  382. default: false
  383. - variable: datasetName
  384. label: Dataset Name
  385. description: The name of the dataset to use for storage.
  386. schema:
  387. type: string
  388. required: true
  389. immutable: true
  390. hidden: true
  391. default: "thumbnails"
  392. - variable: aclEntries
  393. label: ACL Configuration
  394. schema:
  395. type: dict
  396. show_if: [["aclEnable", "=", true]]
  397. attrs: []
  398. - variable: hostPathConfig
  399. label: Host Path Configuration
  400. schema:
  401. type: dict
  402. show_if: [["type", "=", "hostPath"]]
  403. attrs:
  404. - variable: aclEnable
  405. label: Enable ACL
  406. description: Enable ACL for the dataset.
  407. schema:
  408. type: boolean
  409. default: false
  410. - variable: acl
  411. label: ACL Configuration
  412. schema:
  413. type: dict
  414. show_if: [["aclEnable", "=", true]]
  415. attrs: []
  416. $ref:
  417. - "normalize/acl"
  418. - variable: hostPath
  419. label: Host Path
  420. description: The host path to use for storage.
  421. schema:
  422. type: hostpath
  423. show_if: [["aclEnable", "=", false]]
  424. required: true
  425. - variable: additionalStorages
  426. label: Additional Storage
  427. description: Additional storage for PiGallery2.
  428. schema:
  429. type: list
  430. default: []
  431. items:
  432. - variable: storageEntry
  433. label: Storage Entry
  434. schema:
  435. type: dict
  436. attrs:
  437. - variable: type
  438. label: Type
  439. description: |
  440. ixVolume: Is dataset created automatically by the system.</br>
  441. Host Path: Is a path that already exists on the system.</br>
  442. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  443. schema:
  444. type: string
  445. required: true
  446. default: "ixVolume"
  447. immutable: true
  448. enum:
  449. - value: "hostPath"
  450. description: Host Path (Path that already exists on the system)
  451. - value: "ixVolume"
  452. description: ixVolume (Dataset created automatically by the system)
  453. - value: "smb-pv-pvc"
  454. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  455. - variable: readOnly
  456. label: Read Only
  457. description: Mount the volume as read only.
  458. schema:
  459. type: boolean
  460. default: false
  461. - variable: mountPath
  462. label: Mount Path
  463. description: The path inside the container to mount the storage.
  464. schema:
  465. type: path
  466. required: true
  467. - variable: hostPathConfig
  468. label: Host Path Configuration
  469. schema:
  470. type: dict
  471. show_if: [["type", "=", "hostPath"]]
  472. attrs:
  473. - variable: aclEnable
  474. label: Enable ACL
  475. description: Enable ACL for the dataset.
  476. schema:
  477. type: boolean
  478. default: false
  479. - variable: acl
  480. label: ACL Configuration
  481. schema:
  482. type: dict
  483. show_if: [["aclEnable", "=", true]]
  484. attrs: []
  485. $ref:
  486. - "normalize/acl"
  487. - variable: hostPath
  488. label: Host Path
  489. description: The host path to use for storage.
  490. schema:
  491. type: hostpath
  492. show_if: [["aclEnable", "=", false]]
  493. required: true
  494. - variable: ixVolumeConfig
  495. label: ixVolume Configuration
  496. description: The configuration for the ixVolume dataset.
  497. schema:
  498. type: dict
  499. show_if: [["type", "=", "ixVolume"]]
  500. $ref:
  501. - "normalize/ixVolume"
  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: datasetName
  510. label: Dataset Name
  511. description: The name of the dataset to use for storage.
  512. schema:
  513. type: string
  514. required: true
  515. immutable: true
  516. default: "storage_entry"
  517. - variable: aclEntries
  518. label: ACL Configuration
  519. schema:
  520. type: dict
  521. show_if: [["aclEnable", "=", true]]
  522. attrs: []
  523. - variable: smbConfig
  524. label: SMB Share Configuration
  525. description: The configuration for the SMB Share.
  526. schema:
  527. type: dict
  528. show_if: [["type", "=", "smb-pv-pvc"]]
  529. attrs:
  530. - variable: server
  531. label: Server
  532. description: The server for the SMB share.
  533. schema:
  534. type: string
  535. required: true
  536. - variable: share
  537. label: Share
  538. description: The share name for the SMB share.
  539. schema:
  540. type: string
  541. required: true
  542. - variable: domain
  543. label: Domain (Optional)
  544. description: The domain for the SMB share.
  545. schema:
  546. type: string
  547. - variable: username
  548. label: Username
  549. description: The username for the SMB share.
  550. schema:
  551. type: string
  552. required: true
  553. - variable: password
  554. label: Password
  555. description: The password for the SMB share.
  556. schema:
  557. type: string
  558. required: true
  559. private: true
  560. - variable: size
  561. label: Size (in Gi)
  562. description: The size of the volume quota.
  563. schema:
  564. type: int
  565. required: true
  566. min: 1
  567. default: 1
  568. - variable: resources
  569. group: Resources Configuration
  570. label: ""
  571. schema:
  572. type: dict
  573. attrs:
  574. - variable: limits
  575. label: Limits
  576. schema:
  577. type: dict
  578. attrs:
  579. - variable: cpu
  580. label: CPU
  581. description: CPU limit for PiGallery2.
  582. schema:
  583. type: string
  584. max_length: 6
  585. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  586. valid_chars_error: |
  587. Valid CPU limit formats are</br>
  588. - Plain Integer - eg. 1</br>
  589. - Float - eg. 0.5</br>
  590. - Milicpu - eg. 500m
  591. default: "4000m"
  592. required: true
  593. - variable: memory
  594. label: Memory
  595. description: Memory limit for PiGallery2.
  596. schema:
  597. type: string
  598. max_length: 12
  599. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  600. valid_chars_error: |
  601. Valid Memory limit formats are</br>
  602. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  603. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  604. - Plain Integer in bytes - eg. 1024</br>
  605. - Exponent - eg. 134e6
  606. default: "8Gi"
  607. required: true