questions.yaml 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611
  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: ixVolumeConfig
  285. label: ixVolume Configuration
  286. description: The configuration for the ixVolume dataset.
  287. schema:
  288. type: dict
  289. show_if: [["type", "=", "ixVolume"]]
  290. $ref:
  291. - "normalize/ixVolume"
  292. attrs:
  293. - variable: aclEnable
  294. label: Enable ACL
  295. description: Enable ACL for the dataset.
  296. schema:
  297. type: boolean
  298. default: false
  299. - variable: datasetName
  300. label: Dataset Name
  301. description: The name of the dataset to use for storage.
  302. schema:
  303. type: string
  304. required: true
  305. immutable: true
  306. hidden: true
  307. default: "media"
  308. - variable: aclEntries
  309. label: ACL Configuration
  310. schema:
  311. type: dict
  312. show_if: [["aclEnable", "=", true]]
  313. attrs: []
  314. - variable: hostPathConfig
  315. label: Host Path Configuration
  316. schema:
  317. type: dict
  318. show_if: [["type", "=", "hostPath"]]
  319. attrs:
  320. - variable: aclEnable
  321. label: Enable ACL
  322. description: Enable ACL for the dataset.
  323. schema:
  324. type: boolean
  325. default: false
  326. - variable: acl
  327. label: ACL Configuration
  328. schema:
  329. type: dict
  330. show_if: [["aclEnable", "=", true]]
  331. attrs: []
  332. $ref:
  333. - "normalize/acl"
  334. - variable: hostPath
  335. label: Host Path
  336. description: The host path to use for storage.
  337. schema:
  338. type: hostpath
  339. show_if: [["aclEnable", "=", false]]
  340. required: true
  341. - variable: thumbnails
  342. label: PiGallery2 Thumbnails Storage
  343. description: The path to store PiGallery2 Thumbnails.
  344. schema:
  345. type: dict
  346. attrs:
  347. - variable: type
  348. label: Type
  349. description: |
  350. ixVolume: Is dataset created automatically by the system.</br>
  351. Host Path: Is a path that already exists on the system.
  352. schema:
  353. type: string
  354. required: true
  355. immutable: true
  356. default: "ixVolume"
  357. enum:
  358. - value: "hostPath"
  359. description: Host Path (Path that already exists on the system)
  360. - value: "ixVolume"
  361. description: ixVolume (Dataset created automatically by the system)
  362. - variable: ixVolumeConfig
  363. label: ixVolume Configuration
  364. description: The configuration for the ixVolume dataset.
  365. schema:
  366. type: dict
  367. show_if: [["type", "=", "ixVolume"]]
  368. $ref:
  369. - "normalize/ixVolume"
  370. attrs:
  371. - variable: aclEnable
  372. label: Enable ACL
  373. description: Enable ACL for the dataset.
  374. schema:
  375. type: boolean
  376. default: false
  377. - variable: datasetName
  378. label: Dataset Name
  379. description: The name of the dataset to use for storage.
  380. schema:
  381. type: string
  382. required: true
  383. immutable: true
  384. hidden: true
  385. default: "thumbnails"
  386. - variable: aclEntries
  387. label: ACL Configuration
  388. schema:
  389. type: dict
  390. show_if: [["aclEnable", "=", true]]
  391. attrs: []
  392. - variable: hostPathConfig
  393. label: Host Path Configuration
  394. schema:
  395. type: dict
  396. show_if: [["type", "=", "hostPath"]]
  397. attrs:
  398. - variable: aclEnable
  399. label: Enable ACL
  400. description: Enable ACL for the dataset.
  401. schema:
  402. type: boolean
  403. default: false
  404. - variable: acl
  405. label: ACL Configuration
  406. schema:
  407. type: dict
  408. show_if: [["aclEnable", "=", true]]
  409. attrs: []
  410. $ref:
  411. - "normalize/acl"
  412. - variable: hostPath
  413. label: Host Path
  414. description: The host path to use for storage.
  415. schema:
  416. type: hostpath
  417. show_if: [["aclEnable", "=", false]]
  418. required: true
  419. - variable: additionalStorages
  420. label: Additional Storage
  421. description: Additional storage for PiGallery2.
  422. schema:
  423. type: list
  424. default: []
  425. items:
  426. - variable: storageEntry
  427. label: Storage Entry
  428. schema:
  429. type: dict
  430. attrs:
  431. - variable: type
  432. label: Type
  433. description: |
  434. ixVolume: Is dataset created automatically by the system.</br>
  435. Host Path: Is a path that already exists on the system.</br>
  436. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  437. schema:
  438. type: string
  439. required: true
  440. default: "ixVolume"
  441. immutable: true
  442. enum:
  443. - value: "hostPath"
  444. description: Host Path (Path that already exists on the system)
  445. - value: "ixVolume"
  446. description: ixVolume (Dataset created automatically by the system)
  447. - value: "smb-pv-pvc"
  448. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  449. - variable: readOnly
  450. label: Read Only
  451. description: Mount the volume as read only.
  452. schema:
  453. type: boolean
  454. default: false
  455. - variable: mountPath
  456. label: Mount Path
  457. description: The path inside the container to mount the storage.
  458. schema:
  459. type: path
  460. required: true
  461. - variable: hostPathConfig
  462. label: Host Path Configuration
  463. schema:
  464. type: dict
  465. show_if: [["type", "=", "hostPath"]]
  466. attrs:
  467. - variable: aclEnable
  468. label: Enable ACL
  469. description: Enable ACL for the dataset.
  470. schema:
  471. type: boolean
  472. default: false
  473. - variable: acl
  474. label: ACL Configuration
  475. schema:
  476. type: dict
  477. show_if: [["aclEnable", "=", true]]
  478. attrs: []
  479. $ref:
  480. - "normalize/acl"
  481. - variable: hostPath
  482. label: Host Path
  483. description: The host path to use for storage.
  484. schema:
  485. type: hostpath
  486. show_if: [["aclEnable", "=", false]]
  487. required: true
  488. - variable: ixVolumeConfig
  489. label: ixVolume Configuration
  490. description: The configuration for the ixVolume dataset.
  491. schema:
  492. type: dict
  493. show_if: [["type", "=", "ixVolume"]]
  494. $ref:
  495. - "normalize/ixVolume"
  496. attrs:
  497. - variable: aclEnable
  498. label: Enable ACL
  499. description: Enable ACL for the dataset.
  500. schema:
  501. type: boolean
  502. default: false
  503. - variable: datasetName
  504. label: Dataset Name
  505. description: The name of the dataset to use for storage.
  506. schema:
  507. type: string
  508. required: true
  509. immutable: true
  510. default: "storage_entry"
  511. - variable: aclEntries
  512. label: ACL Configuration
  513. schema:
  514. type: dict
  515. show_if: [["aclEnable", "=", true]]
  516. attrs: []
  517. - variable: smbConfig
  518. label: SMB Share Configuration
  519. description: The configuration for the SMB Share.
  520. schema:
  521. type: dict
  522. show_if: [["type", "=", "smb-pv-pvc"]]
  523. attrs:
  524. - variable: server
  525. label: Server
  526. description: The server for the SMB share.
  527. schema:
  528. type: string
  529. required: true
  530. - variable: share
  531. label: Share
  532. description: The share name for the SMB share.
  533. schema:
  534. type: string
  535. required: true
  536. - variable: domain
  537. label: Domain (Optional)
  538. description: The domain for the SMB share.
  539. schema:
  540. type: string
  541. - variable: username
  542. label: Username
  543. description: The username for the SMB share.
  544. schema:
  545. type: string
  546. required: true
  547. - variable: password
  548. label: Password
  549. description: The password for the SMB share.
  550. schema:
  551. type: string
  552. required: true
  553. private: true
  554. - variable: size
  555. label: Size (in Gi)
  556. description: The size of the volume quota.
  557. schema:
  558. type: int
  559. required: true
  560. min: 1
  561. default: 1
  562. - variable: resources
  563. group: Resources Configuration
  564. label: ""
  565. schema:
  566. type: dict
  567. attrs:
  568. - variable: limits
  569. label: Limits
  570. schema:
  571. type: dict
  572. attrs:
  573. - variable: cpu
  574. label: CPU
  575. description: CPU limit for PiGallery2.
  576. schema:
  577. type: string
  578. max_length: 6
  579. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  580. valid_chars_error: |
  581. Valid CPU limit formats are</br>
  582. - Plain Integer - eg. 1</br>
  583. - Float - eg. 0.5</br>
  584. - Milicpu - eg. 500m
  585. default: "4000m"
  586. required: true
  587. - variable: memory
  588. label: Memory
  589. description: Memory limit for PiGallery2.
  590. schema:
  591. type: string
  592. max_length: 12
  593. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  594. valid_chars_error: |
  595. Valid Memory limit formats are</br>
  596. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  597. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  598. - Plain Integer in bytes - eg. 1024</br>
  599. - Exponent - eg. 134e6
  600. default: "8Gi"
  601. required: true