questions.yaml 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546
  1. groups:
  2. - name: Omada Controller Configuration
  3. description: Configure Omada Controller
  4. - name: User and Group Configuration
  5. description: Configure User and Group for Omada Controller
  6. - name: Network Configuration
  7. description: Configure Network for Omada Controller
  8. - name: Storage Configuration
  9. description: Configure Storage for Omada Controller
  10. - name: Resources Configuration
  11. description: Configure Resources for Omada Controller
  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: TZ
  23. group: Omada Controller Configuration
  24. label: Timezone
  25. schema:
  26. type: string
  27. default: Etc/UTC
  28. required: true
  29. $ref:
  30. - definitions/timezone
  31. - variable: omadaConfig
  32. label: ""
  33. group: Omada Controller Configuration
  34. schema:
  35. type: dict
  36. attrs:
  37. - variable: additionalEnvs
  38. label: Additional Environment Variables
  39. description: Configure additional environment variables for Omada Controller.
  40. schema:
  41. type: list
  42. default: []
  43. items:
  44. - variable: env
  45. label: Environment Variable
  46. schema:
  47. type: dict
  48. attrs:
  49. - variable: name
  50. label: Name
  51. schema:
  52. type: string
  53. required: true
  54. - variable: value
  55. label: Value
  56. schema:
  57. type: string
  58. required: true
  59. - variable: omadaID
  60. label: ""
  61. group: User and Group Configuration
  62. schema:
  63. type: dict
  64. attrs:
  65. - variable: user
  66. label: User ID
  67. description: The user id that Omada Controller files will be owned by.
  68. schema:
  69. type: int
  70. min: 568
  71. default: 568
  72. required: true
  73. - variable: group
  74. label: Group ID
  75. description: The group id that Omada Controller files will be owned by.
  76. schema:
  77. type: int
  78. min: 568
  79. default: 568
  80. required: true
  81. - variable: omadaNetwork
  82. label: ""
  83. group: Network Configuration
  84. schema:
  85. type: dict
  86. attrs:
  87. - variable: manageHttpPort
  88. label: Manage HTTP Port
  89. description: The port to use for Omada Controller HTTP management.
  90. schema:
  91. type: int
  92. default: 30076
  93. min: 9000
  94. max: 65535
  95. required: true
  96. - variable: manageHttpsPort
  97. label: Manage HTTPS Port
  98. description: The port to use for Omada Controller HTTPS management.
  99. schema:
  100. type: int
  101. default: 30077
  102. min: 9000
  103. max: 65535
  104. required: true
  105. - variable: portalHttpPort
  106. label: Portal HTTP Port
  107. description: The port to use for Omada Controller HTTP portal.
  108. schema:
  109. type: int
  110. default: 30078
  111. min: 9000
  112. max: 65535
  113. required: true
  114. - variable: portalHttpsPort
  115. label: Portal HTTPS Port
  116. description: The port to use for Omada Controller HTTPS portal.
  117. schema:
  118. type: int
  119. default: 30079
  120. min: 9000
  121. max: 65535
  122. required: true
  123. - variable: appDiscoveryPort
  124. label: App Discovery Port
  125. description: The port to use for Omada Controller App Discovery.
  126. schema:
  127. type: int
  128. default: 27001
  129. min: 9000
  130. max: 65535
  131. required: true
  132. - variable: discoveryPort
  133. label: Discovery Port
  134. description: The port to use for Omada Controller Discovery.
  135. schema:
  136. type: int
  137. default: 29810
  138. min: 9000
  139. max: 65535
  140. required: true
  141. - variable: managerV1Port
  142. label: Manager v1 Port
  143. description: The port to use for Omada Controller Manager v1.
  144. schema:
  145. type: int
  146. default: 29811
  147. min: 9000
  148. max: 65535
  149. required: true
  150. - variable: adoptV1Port
  151. label: Adopt v1 Port
  152. description: The port to use for Omada Controller Adopt v1.
  153. schema:
  154. type: int
  155. default: 29812
  156. min: 9000
  157. max: 65535
  158. required: true
  159. - variable: upgradeV1Port
  160. label: Upgrade v1 Port
  161. description: The port to use for Omada Controller Upgrade v1.
  162. schema:
  163. type: int
  164. default: 29813
  165. min: 9000
  166. max: 65535
  167. required: true
  168. - variable: managerV2Port
  169. label: Manager v2 Port
  170. description: The port to use for Omada Controller Manager v2.
  171. schema:
  172. type: int
  173. default: 29814
  174. min: 9000
  175. max: 65535
  176. required: true
  177. - variable: certificateID
  178. label: Certificate
  179. description: The certificate to use for Omada Controller </br>
  180. schema:
  181. type: int
  182. "null": true
  183. $ref:
  184. - "definitions/certificate"
  185. - variable: hostNetwork
  186. label: Host Network
  187. description: |
  188. Bind to the host network. </br>s
  189. This might be required for specific features to work.
  190. schema:
  191. type: boolean
  192. default: false
  193. - variable: omadaStorage
  194. label: ""
  195. group: Storage Configuration
  196. schema:
  197. type: dict
  198. attrs:
  199. - variable: data
  200. label: Omada Controller Data Storage
  201. description: The path to store Omada Controller Data.
  202. schema:
  203. type: dict
  204. attrs:
  205. - variable: type
  206. label: Type
  207. description: |
  208. ixVolume: Is dataset created automatically by the system.</br>
  209. Host Path: Is a path that already exists on the system.
  210. schema:
  211. type: string
  212. required: true
  213. immutable: true
  214. default: "ixVolume"
  215. enum:
  216. - value: "hostPath"
  217. description: Host Path (Path that already exists on the system)
  218. - value: "ixVolume"
  219. description: ixVolume (Dataset created automatically by the system)
  220. - variable: ixVolumeConfig
  221. label: ixVolume Configuration
  222. description: The configuration for the ixVolume dataset.
  223. schema:
  224. type: dict
  225. show_if: [["type", "=", "ixVolume"]]
  226. $ref:
  227. - "normalize/ixVolume"
  228. attrs:
  229. - variable: aclEnable
  230. label: Enable ACL
  231. description: Enable ACL for the dataset.
  232. schema:
  233. type: boolean
  234. default: false
  235. - variable: datasetName
  236. label: Dataset Name
  237. description: The name of the dataset to use for storage.
  238. schema:
  239. type: string
  240. required: true
  241. immutable: true
  242. hidden: true
  243. default: "data"
  244. - variable: aclEntries
  245. label: ACL Configuration
  246. schema:
  247. type: dict
  248. show_if: [["aclEnable", "=", true]]
  249. attrs: []
  250. - variable: hostPathConfig
  251. label: Host Path Configuration
  252. schema:
  253. type: dict
  254. show_if: [["type", "=", "hostPath"]]
  255. attrs:
  256. - variable: aclEnable
  257. label: Enable ACL
  258. description: Enable ACL for the dataset.
  259. schema:
  260. type: boolean
  261. default: false
  262. - variable: acl
  263. label: ACL Configuration
  264. schema:
  265. type: dict
  266. show_if: [["aclEnable", "=", true]]
  267. attrs: []
  268. $ref:
  269. - "normalize/acl"
  270. - variable: hostPath
  271. label: Host Path
  272. description: The host path to use for storage.
  273. schema:
  274. type: hostpath
  275. show_if: [["aclEnable", "=", false]]
  276. required: true
  277. - variable: logs
  278. label: Omada Controller Logs Storage
  279. description: The path to store Omada Controller Logs.
  280. schema:
  281. type: dict
  282. attrs:
  283. - variable: type
  284. label: Type
  285. description: |
  286. ixVolume: Is dataset created automatically by the system.</br>
  287. Host Path: Is a path that already exists on the system.
  288. schema:
  289. type: string
  290. required: true
  291. immutable: true
  292. default: "ixVolume"
  293. enum:
  294. - value: "hostPath"
  295. description: Host Path (Path that already exists on the system)
  296. - value: "ixVolume"
  297. description: ixVolume (Dataset created automatically by the system)
  298. - variable: ixVolumeConfig
  299. label: ixVolume Configuration
  300. description: The configuration for the ixVolume dataset.
  301. schema:
  302. type: dict
  303. show_if: [["type", "=", "ixVolume"]]
  304. $ref:
  305. - "normalize/ixVolume"
  306. attrs:
  307. - variable: aclEnable
  308. label: Enable ACL
  309. description: Enable ACL for the dataset.
  310. schema:
  311. type: boolean
  312. default: false
  313. - variable: datasetName
  314. label: Dataset Name
  315. description: The name of the dataset to use for storage.
  316. schema:
  317. type: string
  318. required: true
  319. immutable: true
  320. hidden: true
  321. default: "logs"
  322. - variable: aclEntries
  323. label: ACL Configuration
  324. schema:
  325. type: dict
  326. show_if: [["aclEnable", "=", true]]
  327. attrs: []
  328. - variable: hostPathConfig
  329. label: Host Path Configuration
  330. schema:
  331. type: dict
  332. show_if: [["type", "=", "hostPath"]]
  333. attrs:
  334. - variable: aclEnable
  335. label: Enable ACL
  336. description: Enable ACL for the dataset.
  337. schema:
  338. type: boolean
  339. default: false
  340. - variable: acl
  341. label: ACL Configuration
  342. schema:
  343. type: dict
  344. show_if: [["aclEnable", "=", true]]
  345. attrs: []
  346. $ref:
  347. - "normalize/acl"
  348. - variable: hostPath
  349. label: Host Path
  350. description: The host path to use for storage.
  351. schema:
  352. type: hostpath
  353. show_if: [["aclEnable", "=", false]]
  354. required: true
  355. - variable: additionalStorages
  356. label: Additional Storage
  357. description: Additional storage for Omada Controller.
  358. schema:
  359. type: list
  360. default: []
  361. items:
  362. - variable: storageEntry
  363. label: Storage Entry
  364. schema:
  365. type: dict
  366. attrs:
  367. - variable: type
  368. label: Type
  369. description: |
  370. ixVolume: Is dataset created automatically by the system.</br>
  371. Host Path: Is a path that already exists on the system.</br>
  372. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  373. schema:
  374. type: string
  375. required: true
  376. default: "ixVolume"
  377. immutable: true
  378. enum:
  379. - value: "hostPath"
  380. description: Host Path (Path that already exists on the system)
  381. - value: "ixVolume"
  382. description: ixVolume (Dataset created automatically by the system)
  383. - value: "smb-pv-pvc"
  384. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  385. - variable: readOnly
  386. label: Read Only
  387. description: Mount the volume as read only.
  388. schema:
  389. type: boolean
  390. default: false
  391. - variable: mountPath
  392. label: Mount Path
  393. description: The path inside the container to mount the storage.
  394. schema:
  395. type: path
  396. required: true
  397. - variable: hostPathConfig
  398. label: Host Path Configuration
  399. schema:
  400. type: dict
  401. show_if: [["type", "=", "hostPath"]]
  402. attrs:
  403. - variable: aclEnable
  404. label: Enable ACL
  405. description: Enable ACL for the dataset.
  406. schema:
  407. type: boolean
  408. default: false
  409. - variable: acl
  410. label: ACL Configuration
  411. schema:
  412. type: dict
  413. show_if: [["aclEnable", "=", true]]
  414. attrs: []
  415. $ref:
  416. - "normalize/acl"
  417. - variable: hostPath
  418. label: Host Path
  419. description: The host path to use for storage.
  420. schema:
  421. type: hostpath
  422. show_if: [["aclEnable", "=", false]]
  423. required: true
  424. - variable: ixVolumeConfig
  425. label: ixVolume Configuration
  426. description: The configuration for the ixVolume dataset.
  427. schema:
  428. type: dict
  429. show_if: [["type", "=", "ixVolume"]]
  430. $ref:
  431. - "normalize/ixVolume"
  432. attrs:
  433. - variable: aclEnable
  434. label: Enable ACL
  435. description: Enable ACL for the dataset.
  436. schema:
  437. type: boolean
  438. default: false
  439. - variable: datasetName
  440. label: Dataset Name
  441. description: The name of the dataset to use for storage.
  442. schema:
  443. type: string
  444. required: true
  445. immutable: true
  446. default: "storage_entry"
  447. - variable: aclEntries
  448. label: ACL Configuration
  449. schema:
  450. type: dict
  451. show_if: [["aclEnable", "=", true]]
  452. attrs: []
  453. - variable: smbConfig
  454. label: SMB Share Configuration
  455. description: The configuration for the SMB Share.
  456. schema:
  457. type: dict
  458. show_if: [["type", "=", "smb-pv-pvc"]]
  459. attrs:
  460. - variable: server
  461. label: Server
  462. description: The server for the SMB share.
  463. schema:
  464. type: string
  465. required: true
  466. - variable: share
  467. label: Share
  468. description: The share name for the SMB share.
  469. schema:
  470. type: string
  471. required: true
  472. - variable: domain
  473. label: Domain (Optional)
  474. description: The domain for the SMB share.
  475. schema:
  476. type: string
  477. - variable: username
  478. label: Username
  479. description: The username for the SMB share.
  480. schema:
  481. type: string
  482. required: true
  483. - variable: password
  484. label: Password
  485. description: The password for the SMB share.
  486. schema:
  487. type: string
  488. required: true
  489. private: true
  490. - variable: size
  491. label: Size (in Gi)
  492. description: The size of the volume quota.
  493. schema:
  494. type: int
  495. required: true
  496. min: 1
  497. default: 1
  498. - variable: resources
  499. group: Resources Configuration
  500. label: ""
  501. schema:
  502. type: dict
  503. attrs:
  504. - variable: limits
  505. label: Limits
  506. schema:
  507. type: dict
  508. attrs:
  509. - variable: cpu
  510. label: CPU
  511. description: CPU limit for Omada Controller.
  512. schema:
  513. type: string
  514. max_length: 6
  515. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  516. valid_chars_error: |
  517. Valid CPU limit formats are</br>
  518. - Plain Integer - eg. 1</br>
  519. - Float - eg. 0.5</br>
  520. - Milicpu - eg. 500m
  521. default: "4000m"
  522. required: true
  523. - variable: memory
  524. label: Memory
  525. description: Memory limit for Omada Controller.
  526. schema:
  527. type: string
  528. max_length: 12
  529. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  530. valid_chars_error: |
  531. Valid Memory limit formats are</br>
  532. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  533. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  534. - Plain Integer in bytes - eg. 1024</br>
  535. - Exponent - eg. 134e6
  536. default: "8Gi"
  537. required: true