questions.yaml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401
  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. default: "ixVolume"
  122. enum:
  123. - value: "hostPath"
  124. description: Host Path (Path that already exists on the system)
  125. - value: "ixVolume"
  126. description: ixVolume (Dataset created automatically by the system)
  127. - variable: datasetName
  128. label: Dataset Name
  129. schema:
  130. type: string
  131. show_if: [["type", "=", "ixVolume"]]
  132. required: true
  133. hidden: true
  134. immutable: true
  135. default: "config"
  136. $ref:
  137. - "normalize/ixVolume"
  138. - variable: hostPath
  139. label: Host Path
  140. schema:
  141. type: hostpath
  142. show_if: [["type", "=", "hostPath"]]
  143. immutable: true
  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. default: "ixVolume"
  160. enum:
  161. - value: "hostPath"
  162. description: Host Path (Path that already exists on the system)
  163. - value: "ixVolume"
  164. description: ixVolume (Dataset created automatically by the system)
  165. - variable: datasetName
  166. label: Dataset Name
  167. schema:
  168. type: string
  169. show_if: [["type", "=", "ixVolume"]]
  170. required: true
  171. hidden: true
  172. immutable: true
  173. default: "db"
  174. $ref:
  175. - "normalize/ixVolume"
  176. - variable: hostPath
  177. label: Host Path
  178. schema:
  179. type: hostpath
  180. show_if: [["type", "=", "hostPath"]]
  181. immutable: true
  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. default: "ixVolume"
  198. enum:
  199. - value: "hostPath"
  200. description: Host Path (Path that already exists on the system)
  201. - value: "ixVolume"
  202. description: ixVolume (Dataset created automatically by the system)
  203. - variable: datasetName
  204. label: Dataset Name
  205. schema:
  206. type: string
  207. show_if: [["type", "=", "ixVolume"]]
  208. required: true
  209. hidden: true
  210. immutable: true
  211. default: "media"
  212. $ref:
  213. - "normalize/ixVolume"
  214. - variable: hostPath
  215. label: Host Path
  216. schema:
  217. type: hostpath
  218. show_if: [["type", "=", "hostPath"]]
  219. immutable: true
  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. default: "ixVolume"
  236. enum:
  237. - value: "hostPath"
  238. description: Host Path (Path that already exists on the system)
  239. - value: "ixVolume"
  240. description: ixVolume (Dataset created automatically by the system)
  241. - variable: datasetName
  242. label: Dataset Name
  243. schema:
  244. type: string
  245. show_if: [["type", "=", "ixVolume"]]
  246. required: true
  247. hidden: true
  248. immutable: true
  249. default: "thumbnails"
  250. $ref:
  251. - "normalize/ixVolume"
  252. - variable: hostPath
  253. label: Host Path
  254. schema:
  255. type: hostpath
  256. show_if: [["type", "=", "hostPath"]]
  257. immutable: true
  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.
  276. schema:
  277. type: string
  278. required: true
  279. default: "ixVolume"
  280. immutable: true
  281. enum:
  282. - value: "hostPath"
  283. description: Host Path (Path that already exists on the system)
  284. - value: "ixVolume"
  285. description: ixVolume (Dataset created automatically by the system)
  286. - value: "smb-pv-pvc"
  287. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  288. - variable: mountPath
  289. label: Mount Path
  290. description: The path inside the container to mount the storage.
  291. schema:
  292. type: path
  293. required: true
  294. - variable: hostPath
  295. label: Host Path
  296. description: The host path to use for storage.
  297. schema:
  298. type: hostpath
  299. show_if: [["type", "=", "hostPath"]]
  300. required: true
  301. - variable: datasetName
  302. label: Dataset Name
  303. description: The name of the dataset to use for storage.
  304. schema:
  305. type: string
  306. show_if: [["type", "=", "ixVolume"]]
  307. required: true
  308. immutable: true
  309. default: "storage_entry"
  310. $ref:
  311. - "normalize/ixVolume"
  312. - variable: server
  313. label: Server
  314. description: The server for the SMB share.
  315. schema:
  316. type: string
  317. show_if: [["type", "=", "smb-pv-pvc"]]
  318. required: true
  319. - variable: share
  320. label: Share
  321. description: The share name for the SMB share.
  322. schema:
  323. type: string
  324. show_if: [["type", "=", "smb-pv-pvc"]]
  325. required: true
  326. - variable: domain
  327. label: Domain (Optional)
  328. description: The domain for the SMB share.
  329. schema:
  330. type: string
  331. show_if: [["type", "=", "smb-pv-pvc"]]
  332. - variable: username
  333. label: Username
  334. description: The username for the SMB share.
  335. schema:
  336. type: string
  337. show_if: [["type", "=", "smb-pv-pvc"]]
  338. required: true
  339. - variable: password
  340. label: Password
  341. description: The password for the SMB share.
  342. schema:
  343. type: string
  344. show_if: [["type", "=", "smb-pv-pvc"]]
  345. required: true
  346. private: true
  347. - variable: size
  348. label: Size (in Gi)
  349. description: The size of the volume quota.
  350. schema:
  351. type: int
  352. show_if: [["type", "=", "smb-pv-pvc"]]
  353. required: true
  354. min: 1
  355. default: 1
  356. - variable: resources
  357. group: Resources Configuration
  358. label: ""
  359. schema:
  360. type: dict
  361. attrs:
  362. - variable: limits
  363. label: Limits
  364. schema:
  365. type: dict
  366. attrs:
  367. - variable: cpu
  368. label: CPU
  369. description: CPU limit for PiGallery2.
  370. schema:
  371. type: string
  372. max_length: 6
  373. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  374. valid_chars_error: |
  375. Valid CPU limit formats are</br>
  376. - Plain Integer - eg. 1</br>
  377. - Float - eg. 0.5</br>
  378. - Milicpu - eg. 500m
  379. default: "4000m"
  380. required: true
  381. - variable: memory
  382. label: Memory
  383. description: Memory limit for PiGallery2.
  384. schema:
  385. type: string
  386. max_length: 12
  387. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  388. valid_chars_error: |
  389. Valid Memory limit formats are</br>
  390. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  391. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  392. - Plain Integer in bytes - eg. 1024</br>
  393. - Exponent - eg. 134e6
  394. default: "8Gi"
  395. required: true