questions.yaml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  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
  74. description: Enable HTTP for the Unifi Controller Web UI.
  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: datasetName
  157. label: Dataset Name
  158. schema:
  159. type: string
  160. show_if: [["type", "=", "ixVolume"]]
  161. required: true
  162. hidden: true
  163. immutable: true
  164. default: "data"
  165. $ref:
  166. - "normalize/ixVolume"
  167. - variable: hostPath
  168. label: Host Path
  169. schema:
  170. type: hostpath
  171. show_if: [["type", "=", "hostPath"]]
  172. immutable: true
  173. required: true
  174. - variable: additionalStorages
  175. label: Additional Storage
  176. description: Additional storage for Unifi Controller.
  177. schema:
  178. type: list
  179. default: []
  180. items:
  181. - variable: storageEntry
  182. label: Storage Entry
  183. schema:
  184. type: dict
  185. attrs:
  186. - variable: type
  187. label: Type
  188. description: |
  189. ixVolume: Is dataset created automatically by the system.</br>
  190. Host Path: Is a path that already exists on the system.</br>
  191. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  192. schema:
  193. type: string
  194. required: true
  195. default: "ixVolume"
  196. immutable: true
  197. enum:
  198. - value: "hostPath"
  199. description: Host Path (Path that already exists on the system)
  200. - value: "ixVolume"
  201. description: ixVolume (Dataset created automatically by the system)
  202. - value: "smb-pv-pvc"
  203. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  204. - variable: mountPath
  205. label: Mount Path
  206. description: The path inside the container to mount the storage.
  207. schema:
  208. type: path
  209. required: true
  210. - variable: hostPath
  211. label: Host Path
  212. description: The host path to use for storage.
  213. schema:
  214. type: hostpath
  215. show_if: [["type", "=", "hostPath"]]
  216. required: true
  217. - variable: datasetName
  218. label: Dataset Name
  219. description: The name of the dataset to use for storage.
  220. schema:
  221. type: string
  222. show_if: [["type", "=", "ixVolume"]]
  223. required: true
  224. immutable: true
  225. default: "storage_entry"
  226. $ref:
  227. - "normalize/ixVolume"
  228. - variable: server
  229. label: Server
  230. description: The server for the SMB share.
  231. schema:
  232. type: string
  233. show_if: [["type", "=", "smb-pv-pvc"]]
  234. required: true
  235. - variable: share
  236. label: Share
  237. description: The share name for the SMB share.
  238. schema:
  239. type: string
  240. show_if: [["type", "=", "smb-pv-pvc"]]
  241. required: true
  242. - variable: domain
  243. label: Domain (Optional)
  244. description: The domain for the SMB share.
  245. schema:
  246. type: string
  247. show_if: [["type", "=", "smb-pv-pvc"]]
  248. - variable: username
  249. label: Username
  250. description: The username for the SMB share.
  251. schema:
  252. type: string
  253. show_if: [["type", "=", "smb-pv-pvc"]]
  254. required: true
  255. - variable: password
  256. label: Password
  257. description: The password for the SMB share.
  258. schema:
  259. type: string
  260. show_if: [["type", "=", "smb-pv-pvc"]]
  261. required: true
  262. private: true
  263. - variable: size
  264. label: Size (in Gi)
  265. description: The size of the volume quota.
  266. schema:
  267. type: int
  268. show_if: [["type", "=", "smb-pv-pvc"]]
  269. required: true
  270. min: 1
  271. default: 1
  272. - variable: resources
  273. group: Resources Configuration
  274. label: ""
  275. schema:
  276. type: dict
  277. attrs:
  278. - variable: limits
  279. label: Limits
  280. schema:
  281. type: dict
  282. attrs:
  283. - variable: cpu
  284. label: CPU
  285. description: CPU limit for Unifi Controller.
  286. schema:
  287. type: string
  288. max_length: 6
  289. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  290. valid_chars_error: |
  291. Valid CPU limit formats are</br>
  292. - Plain Integer - eg. 1</br>
  293. - Float - eg. 0.5</br>
  294. - Milicpu - eg. 500m
  295. default: "4000m"
  296. required: true
  297. - variable: memory
  298. label: Memory
  299. description: Memory limit for Unifi Controller.
  300. schema:
  301. type: string
  302. max_length: 12
  303. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  304. valid_chars_error: |
  305. Valid Memory limit formats are</br>
  306. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  307. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  308. - Plain Integer in bytes - eg. 1024</br>
  309. - Exponent - eg. 134e6
  310. default: "8Gi"
  311. required: true