questions.yaml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402
  1. groups:
  2. - name: Unifi Controller Configuration
  3. description: Configure Unifi Controller
  4. - name: Network Configuration
  5. description: Configure Network for Unifi Controller
  6. - name: Storage Configuration
  7. description: Configure Storage for Unifi Controller
  8. - name: Resources Configuration
  9. description: Configure Resources for Unifi Controller
  10. portals:
  11. web_portal:
  12. protocols:
  13. - "$kubernetes-resource_configmap_portal_protocol"
  14. host:
  15. - "$kubernetes-resource_configmap_portal_host"
  16. ports:
  17. - "$kubernetes-resource_configmap_portal_port"
  18. path: "$kubernetes-resource_configmap_portal_path"
  19. questions:
  20. - variable: TZ
  21. group: Unifi Controller Configuration
  22. label: Timezone
  23. schema:
  24. type: string
  25. default: Etc/UTC
  26. required: true
  27. $ref:
  28. - definitions/timezone
  29. - variable: unifiConfig
  30. label: ""
  31. group: Unifi Controller Configuration
  32. schema:
  33. type: dict
  34. attrs:
  35. - variable: additionalEnvs
  36. label: Additional Environment Variables
  37. description: Configure additional environment variables for Unifi Controller.
  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: unifiNetwork
  58. label: ""
  59. group: Network Configuration
  60. schema:
  61. type: dict
  62. attrs:
  63. - variable: webHttpsPort
  64. label: Web HTTPS Port
  65. description: The HTTPS port for the Unifi Controller Web UI.
  66. schema:
  67. type: int
  68. default: 30072
  69. min: 9000
  70. max: 65535
  71. required: true
  72. - variable: enableWebHttp
  73. label: Enable Web HTTP / Inform Port
  74. description: Enable HTTP for the Unifi Controller Inform Port.
  75. schema:
  76. type: boolean
  77. default: false
  78. - variable: webHttpPort
  79. label: Web HTTP Port
  80. description: The HTTP port for the Unifi Controller Web UI.
  81. schema:
  82. type: int
  83. default: 30073
  84. show_if: [["enableWebHttp", "=", true]]
  85. min: 9000
  86. max: 65535
  87. required: true
  88. - variable: portalHttpsPort
  89. label: Portal HTTPS Port
  90. description: The HTTPS port for the Unifi Controller Portal.
  91. schema:
  92. type: int
  93. default: 30074
  94. min: 9000
  95. max: 65535
  96. required: true
  97. - variable: enablePortalHttp
  98. label: Enable Portal HTTP
  99. description: Enable HTTP for the Unifi Controller Portal.
  100. schema:
  101. type: boolean
  102. default: false
  103. - variable: portalHttpPort
  104. label: Portal HTTP Port
  105. description: The HTTP port for the Unifi Controller Portal.
  106. schema:
  107. type: int
  108. default: 30075
  109. show_if: [["enablePortalHttp", "=", true]]
  110. min: 9000
  111. max: 65535
  112. required: true
  113. - variable: certificateID
  114. label: Certificate
  115. description: The certificate to use for Unifi Controller
  116. schema:
  117. type: int
  118. "null": true
  119. $ref:
  120. - "definitions/certificate"
  121. - variable: hostNetwork
  122. label: Host Network
  123. description: |
  124. Bind to the host network. </br>
  125. This might be required for specific features like STUN.
  126. schema:
  127. type: boolean
  128. default: false
  129. - variable: unifiStorage
  130. label: ""
  131. group: Storage Configuration
  132. schema:
  133. type: dict
  134. attrs:
  135. - variable: data
  136. label: Unifi Controller Data Storage
  137. description: The path to store Unifi Controller Data.
  138. schema:
  139. type: dict
  140. attrs:
  141. - variable: type
  142. label: Type
  143. description: |
  144. ixVolume: Is dataset created automatically by the system.</br>
  145. Host Path: Is a path that already exists on the system.
  146. schema:
  147. type: string
  148. required: true
  149. immutable: true
  150. default: "ixVolume"
  151. enum:
  152. - value: "hostPath"
  153. description: Host Path (Path that already exists on the system)
  154. - value: "ixVolume"
  155. description: ixVolume (Dataset created automatically by the system)
  156. - variable: ixVolumeConfig
  157. label: ixVolume Configuration
  158. description: The configuration for the ixVolume dataset.
  159. schema:
  160. type: dict
  161. show_if: [["type", "=", "ixVolume"]]
  162. $ref:
  163. - "normalize/ixVolume"
  164. attrs:
  165. - variable: aclEnable
  166. label: Enable ACL
  167. description: Enable ACL for the dataset.
  168. schema:
  169. type: boolean
  170. default: false
  171. - variable: datasetName
  172. label: Dataset Name
  173. description: The name of the dataset to use for storage.
  174. schema:
  175. type: string
  176. required: true
  177. immutable: true
  178. hidden: true
  179. default: "data"
  180. - variable: aclEntries
  181. label: ACL Configuration
  182. schema:
  183. type: dict
  184. show_if: [["aclEnable", "=", true]]
  185. attrs: []
  186. - variable: hostPathConfig
  187. label: Host Path Configuration
  188. schema:
  189. type: dict
  190. show_if: [["type", "=", "hostPath"]]
  191. attrs:
  192. - variable: aclEnable
  193. label: Enable ACL
  194. description: Enable ACL for the dataset.
  195. schema:
  196. type: boolean
  197. default: false
  198. - variable: acl
  199. label: ACL Configuration
  200. schema:
  201. type: dict
  202. show_if: [["aclEnable", "=", true]]
  203. attrs: []
  204. $ref:
  205. - "normalize/acl"
  206. - variable: hostPath
  207. label: Host Path
  208. description: The host path to use for storage.
  209. schema:
  210. type: hostpath
  211. show_if: [["aclEnable", "=", false]]
  212. required: true
  213. - variable: additionalStorages
  214. label: Additional Storage
  215. description: Additional storage for Unifi Controller.
  216. schema:
  217. type: list
  218. default: []
  219. items:
  220. - variable: storageEntry
  221. label: Storage Entry
  222. schema:
  223. type: dict
  224. attrs:
  225. - variable: type
  226. label: Type
  227. description: |
  228. ixVolume: Is dataset created automatically by the system.</br>
  229. Host Path: Is a path that already exists on the system.</br>
  230. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  231. schema:
  232. type: string
  233. required: true
  234. default: "ixVolume"
  235. immutable: true
  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. - value: "smb-pv-pvc"
  242. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  243. - variable: readOnly
  244. label: Read Only
  245. description: Mount the volume as read only.
  246. schema:
  247. type: boolean
  248. default: false
  249. - variable: mountPath
  250. label: Mount Path
  251. description: The path inside the container to mount the storage.
  252. schema:
  253. type: path
  254. required: true
  255. - variable: hostPathConfig
  256. label: Host Path Configuration
  257. schema:
  258. type: dict
  259. show_if: [["type", "=", "hostPath"]]
  260. attrs:
  261. - variable: aclEnable
  262. label: Enable ACL
  263. description: Enable ACL for the dataset.
  264. schema:
  265. type: boolean
  266. default: false
  267. - variable: acl
  268. label: ACL Configuration
  269. schema:
  270. type: dict
  271. show_if: [["aclEnable", "=", true]]
  272. attrs: []
  273. $ref:
  274. - "normalize/acl"
  275. - variable: hostPath
  276. label: Host Path
  277. description: The host path to use for storage.
  278. schema:
  279. type: hostpath
  280. show_if: [["aclEnable", "=", false]]
  281. required: true
  282. - variable: ixVolumeConfig
  283. label: ixVolume Configuration
  284. description: The configuration for the ixVolume dataset.
  285. schema:
  286. type: dict
  287. show_if: [["type", "=", "ixVolume"]]
  288. $ref:
  289. - "normalize/ixVolume"
  290. attrs:
  291. - variable: aclEnable
  292. label: Enable ACL
  293. description: Enable ACL for the dataset.
  294. schema:
  295. type: boolean
  296. default: false
  297. - variable: datasetName
  298. label: Dataset Name
  299. description: The name of the dataset to use for storage.
  300. schema:
  301. type: string
  302. required: true
  303. immutable: true
  304. default: "storage_entry"
  305. - variable: aclEntries
  306. label: ACL Configuration
  307. schema:
  308. type: dict
  309. show_if: [["aclEnable", "=", true]]
  310. attrs: []
  311. - variable: smbConfig
  312. label: SMB Share Configuration
  313. description: The configuration for the SMB Share.
  314. schema:
  315. type: dict
  316. show_if: [["type", "=", "smb-pv-pvc"]]
  317. attrs:
  318. - variable: server
  319. label: Server
  320. description: The server for the SMB share.
  321. schema:
  322. type: string
  323. required: true
  324. - variable: share
  325. label: Share
  326. description: The share name for the SMB share.
  327. schema:
  328. type: string
  329. required: true
  330. - variable: domain
  331. label: Domain (Optional)
  332. description: The domain for the SMB share.
  333. schema:
  334. type: string
  335. - variable: username
  336. label: Username
  337. description: The username for the SMB share.
  338. schema:
  339. type: string
  340. required: true
  341. - variable: password
  342. label: Password
  343. description: The password for the SMB share.
  344. schema:
  345. type: string
  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. 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 Unifi Controller.
  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 Unifi Controller.
  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