questions.yaml 15 KB

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