questions.yaml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406
  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: 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: db
  147. label: PiGallery2 Database Storage
  148. description: The path to store PiGallery2 Database.
  149. schema:
  150. type: dict
  151. attrs:
  152. - variable: type
  153. label: Type
  154. description: |
  155. ixVolume: Is dataset created automatically by the system.</br>
  156. Host Path: Is a path that already exists on the system.
  157. schema:
  158. type: string
  159. required: true
  160. immutable: true
  161. default: "ixVolume"
  162. enum:
  163. - value: "hostPath"
  164. description: Host Path (Path that already exists on the system)
  165. - value: "ixVolume"
  166. description: ixVolume (Dataset created automatically by the system)
  167. - variable: datasetName
  168. label: Dataset Name
  169. schema:
  170. type: string
  171. show_if: [["type", "=", "ixVolume"]]
  172. required: true
  173. hidden: true
  174. immutable: true
  175. default: "db"
  176. $ref:
  177. - "normalize/ixVolume"
  178. - variable: hostPath
  179. label: Host Path
  180. schema:
  181. type: hostpath
  182. show_if: [["type", "=", "hostPath"]]
  183. immutable: true
  184. required: true
  185. - variable: media
  186. label: PiGallery2 Media Storage
  187. description: The path to store PiGallery2 Media.
  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: datasetName
  207. label: Dataset Name
  208. schema:
  209. type: string
  210. show_if: [["type", "=", "ixVolume"]]
  211. required: true
  212. hidden: true
  213. immutable: true
  214. default: "media"
  215. $ref:
  216. - "normalize/ixVolume"
  217. - variable: hostPath
  218. label: Host Path
  219. schema:
  220. type: hostpath
  221. show_if: [["type", "=", "hostPath"]]
  222. immutable: true
  223. required: true
  224. - variable: thumbnails
  225. label: PiGallery2 Thumbnails Storage
  226. description: The path to store PiGallery2 Thumbnails.
  227. schema:
  228. type: dict
  229. attrs:
  230. - variable: type
  231. label: Type
  232. description: |
  233. ixVolume: Is dataset created automatically by the system.</br>
  234. Host Path: Is a path that already exists on the system.
  235. schema:
  236. type: string
  237. required: true
  238. immutable: true
  239. default: "ixVolume"
  240. enum:
  241. - value: "hostPath"
  242. description: Host Path (Path that already exists on the system)
  243. - value: "ixVolume"
  244. description: ixVolume (Dataset created automatically by the system)
  245. - variable: datasetName
  246. label: Dataset Name
  247. schema:
  248. type: string
  249. show_if: [["type", "=", "ixVolume"]]
  250. required: true
  251. hidden: true
  252. immutable: true
  253. default: "thumbnails"
  254. $ref:
  255. - "normalize/ixVolume"
  256. - variable: hostPath
  257. label: Host Path
  258. schema:
  259. type: hostpath
  260. show_if: [["type", "=", "hostPath"]]
  261. immutable: true
  262. required: true
  263. - variable: additionalStorages
  264. label: Additional Storage
  265. description: Additional storage for PiGallery2.
  266. schema:
  267. type: list
  268. default: []
  269. items:
  270. - variable: storageEntry
  271. label: Storage Entry
  272. schema:
  273. type: dict
  274. attrs:
  275. - variable: type
  276. label: Type
  277. description: |
  278. ixVolume: Is dataset created automatically by the system.</br>
  279. Host Path: Is a path that already exists on the system.</br>
  280. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  281. schema:
  282. type: string
  283. required: true
  284. default: "ixVolume"
  285. immutable: true
  286. enum:
  287. - value: "hostPath"
  288. description: Host Path (Path that already exists on the system)
  289. - value: "ixVolume"
  290. description: ixVolume (Dataset created automatically by the system)
  291. - value: "smb-pv-pvc"
  292. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  293. - variable: mountPath
  294. label: Mount Path
  295. description: The path inside the container to mount the storage.
  296. schema:
  297. type: path
  298. required: true
  299. - variable: hostPath
  300. label: Host Path
  301. description: The host path to use for storage.
  302. schema:
  303. type: hostpath
  304. show_if: [["type", "=", "hostPath"]]
  305. required: true
  306. - variable: datasetName
  307. label: Dataset Name
  308. description: The name of the dataset to use for storage.
  309. schema:
  310. type: string
  311. show_if: [["type", "=", "ixVolume"]]
  312. required: true
  313. immutable: true
  314. default: "storage_entry"
  315. $ref:
  316. - "normalize/ixVolume"
  317. - variable: server
  318. label: Server
  319. description: The server for the SMB share.
  320. schema:
  321. type: string
  322. show_if: [["type", "=", "smb-pv-pvc"]]
  323. required: true
  324. - variable: share
  325. label: Share
  326. description: The share name for the SMB share.
  327. schema:
  328. type: string
  329. show_if: [["type", "=", "smb-pv-pvc"]]
  330. required: true
  331. - variable: domain
  332. label: Domain (Optional)
  333. description: The domain for the SMB share.
  334. schema:
  335. type: string
  336. show_if: [["type", "=", "smb-pv-pvc"]]
  337. - variable: username
  338. label: Username
  339. description: The username for the SMB share.
  340. schema:
  341. type: string
  342. show_if: [["type", "=", "smb-pv-pvc"]]
  343. required: true
  344. - variable: password
  345. label: Password
  346. description: The password for the SMB share.
  347. schema:
  348. type: string
  349. show_if: [["type", "=", "smb-pv-pvc"]]
  350. required: true
  351. private: true
  352. - variable: size
  353. label: Size (in Gi)
  354. description: The size of the volume quota.
  355. schema:
  356. type: int
  357. show_if: [["type", "=", "smb-pv-pvc"]]
  358. required: true
  359. min: 1
  360. default: 1
  361. - variable: resources
  362. group: Resources Configuration
  363. label: ""
  364. schema:
  365. type: dict
  366. attrs:
  367. - variable: limits
  368. label: Limits
  369. schema:
  370. type: dict
  371. attrs:
  372. - variable: cpu
  373. label: CPU
  374. description: CPU limit for PiGallery2.
  375. schema:
  376. type: string
  377. max_length: 6
  378. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  379. valid_chars_error: |
  380. Valid CPU limit formats are</br>
  381. - Plain Integer - eg. 1</br>
  382. - Float - eg. 0.5</br>
  383. - Milicpu - eg. 500m
  384. default: "4000m"
  385. required: true
  386. - variable: memory
  387. label: Memory
  388. description: Memory limit for PiGallery2.
  389. schema:
  390. type: string
  391. max_length: 12
  392. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  393. valid_chars_error: |
  394. Valid Memory limit formats are</br>
  395. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  396. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  397. - Plain Integer in bytes - eg. 1024</br>
  398. - Exponent - eg. 134e6
  399. default: "8Gi"
  400. required: true