questions.yaml 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626
  1. groups:
  2. - name: Odoo Configuration
  3. description: Configure Odoo
  4. - name: Network Configuration
  5. description: Configure Network for Odoo
  6. - name: Storage Configuration
  7. description: Configure Storage for Odoo
  8. - name: Resources Configuration
  9. description: Configure Resources for Odoo
  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: odooConfig
  21. label: ""
  22. group: Odoo Configuration
  23. schema:
  24. type: dict
  25. attrs:
  26. - variable: additionalConf
  27. label: Additional File Configuration Options
  28. description: |
  29. Configure additional file configuration options for Odoo.</br>
  30. Options are appended to the end of the configuration file.</br>
  31. After the predefined configuration options.</br>
  32. schema:
  33. type: list
  34. default: []
  35. items:
  36. - variable: conf
  37. label: Configuration Option
  38. schema:
  39. type: dict
  40. attrs:
  41. - variable: key
  42. label: Key
  43. schema:
  44. type: string
  45. required: true
  46. - variable: value
  47. label: Value
  48. schema:
  49. type: string
  50. required: true
  51. - variable: additionalEnvs
  52. label: Additional Environment Variables
  53. description: Configure additional environment variables for Odoo.
  54. schema:
  55. type: list
  56. default: []
  57. items:
  58. - variable: env
  59. label: Environment Variable
  60. schema:
  61. type: dict
  62. attrs:
  63. - variable: name
  64. label: Name
  65. schema:
  66. type: string
  67. required: true
  68. - variable: value
  69. label: Value
  70. schema:
  71. type: string
  72. required: true
  73. - variable: odooNetwork
  74. label: ""
  75. group: Network Configuration
  76. schema:
  77. type: dict
  78. attrs:
  79. - variable: webPort
  80. label: Web Port
  81. description: The port for the Odoo WebUI.
  82. schema:
  83. type: int
  84. default: 30062
  85. min: 9000
  86. max: 65535
  87. required: true
  88. - variable: hostNetwork
  89. label: Host Network
  90. description: |
  91. Bind to the host network. It's recommended to keep this disabled.
  92. schema:
  93. type: boolean
  94. default: false
  95. - variable: odooStorage
  96. label: ""
  97. group: Storage Configuration
  98. schema:
  99. type: dict
  100. attrs:
  101. - variable: data
  102. label: Odoo Data Storage
  103. description: The path to store Odoo data.
  104. schema:
  105. type: dict
  106. attrs:
  107. - variable: type
  108. label: Type
  109. description: |
  110. ixVolume: Is dataset created automatically by the system.</br>
  111. Host Path: Is a path that already exists on the system.
  112. schema:
  113. type: string
  114. required: true
  115. immutable: true
  116. default: ixVolume
  117. enum:
  118. - value: hostPath
  119. description: Host Path (Path that already exists on the system)
  120. - value: ixVolume
  121. description: ixVolume (Dataset created automatically by the system)
  122. - variable: ixVolumeConfig
  123. label: ixVolume Configuration
  124. description: The configuration for the ixVolume dataset.
  125. schema:
  126. type: dict
  127. show_if: [["type", "=", "ixVolume"]]
  128. $ref:
  129. - "normalize/ixVolume"
  130. attrs:
  131. - variable: aclEnable
  132. label: Enable ACL
  133. description: Enable ACL for the dataset.
  134. schema:
  135. type: boolean
  136. default: false
  137. - variable: datasetName
  138. label: Dataset Name
  139. description: The name of the dataset to use for storage.
  140. schema:
  141. type: string
  142. required: true
  143. immutable: true
  144. hidden: true
  145. default: "data"
  146. - variable: aclEntries
  147. label: ACL Configuration
  148. schema:
  149. type: dict
  150. show_if: [["aclEnable", "=", true]]
  151. attrs: []
  152. - variable: hostPathConfig
  153. label: Host Path Configuration
  154. schema:
  155. type: dict
  156. show_if: [["type", "=", "hostPath"]]
  157. attrs:
  158. - variable: aclEnable
  159. label: Enable ACL
  160. description: Enable ACL for the dataset.
  161. schema:
  162. type: boolean
  163. default: false
  164. - variable: acl
  165. label: ACL Configuration
  166. schema:
  167. type: dict
  168. show_if: [["aclEnable", "=", true]]
  169. attrs: []
  170. $ref:
  171. - "normalize/acl"
  172. - variable: hostPath
  173. label: Host Path
  174. description: The host path to use for storage.
  175. schema:
  176. type: hostpath
  177. show_if: [["aclEnable", "=", false]]
  178. immutable: true
  179. required: true
  180. - variable: addons
  181. label: Odoo Addons Storage
  182. description: The path to store Odoo addons storage.
  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.
  191. schema:
  192. type: string
  193. required: true
  194. immutable: true
  195. default: ixVolume
  196. enum:
  197. - value: hostPath
  198. description: Host Path (Path that already exists on the system)
  199. - value: ixVolume
  200. description: ixVolume (Dataset created automatically by the system)
  201. - variable: ixVolumeConfig
  202. label: ixVolume Configuration
  203. description: The configuration for the ixVolume dataset.
  204. schema:
  205. type: dict
  206. show_if: [["type", "=", "ixVolume"]]
  207. $ref:
  208. - "normalize/ixVolume"
  209. attrs:
  210. - variable: aclEnable
  211. label: Enable ACL
  212. description: Enable ACL for the dataset.
  213. schema:
  214. type: boolean
  215. default: false
  216. - variable: datasetName
  217. label: Dataset Name
  218. description: The name of the dataset to use for storage.
  219. schema:
  220. type: string
  221. required: true
  222. immutable: true
  223. hidden: true
  224. default: "addons"
  225. - variable: aclEntries
  226. label: ACL Configuration
  227. schema:
  228. type: dict
  229. show_if: [["aclEnable", "=", true]]
  230. attrs: []
  231. - variable: hostPathConfig
  232. label: Host Path Configuration
  233. schema:
  234. type: dict
  235. show_if: [["type", "=", "hostPath"]]
  236. attrs:
  237. - variable: aclEnable
  238. label: Enable ACL
  239. description: Enable ACL for the dataset.
  240. schema:
  241. type: boolean
  242. default: false
  243. - variable: acl
  244. label: ACL Configuration
  245. schema:
  246. type: dict
  247. show_if: [["aclEnable", "=", true]]
  248. attrs: []
  249. $ref:
  250. - "normalize/acl"
  251. - variable: hostPath
  252. label: Host Path
  253. description: The host path to use for storage.
  254. schema:
  255. type: hostpath
  256. show_if: [["aclEnable", "=", false]]
  257. immutable: true
  258. required: true
  259. - variable: pgData
  260. label: Odoo Postgres Data Storage
  261. description: The path to store Odoo Postgres Data.
  262. schema:
  263. type: dict
  264. attrs:
  265. - variable: type
  266. label: Type
  267. description: |
  268. ixVolume: Is dataset created automatically by the system.</br>
  269. Host Path: Is a path that already exists on the system.
  270. schema:
  271. type: string
  272. required: true
  273. immutable: true
  274. default: ixVolume
  275. enum:
  276. - value: hostPath
  277. description: Host Path (Path that already exists on the system)
  278. - value: ixVolume
  279. description: ixVolume (Dataset created automatically by the system)
  280. - variable: ixVolumeConfig
  281. label: ixVolume Configuration
  282. description: The configuration for the ixVolume dataset.
  283. schema:
  284. type: dict
  285. # Nothing to show for the user
  286. hidden: true
  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. # Postgres does a CHMOD at startup
  297. # Which fails with ACL
  298. hidden: true
  299. default: false
  300. - variable: datasetName
  301. label: Dataset Name
  302. description: The name of the dataset to use for storage.
  303. schema:
  304. type: string
  305. required: true
  306. immutable: true
  307. hidden: true
  308. default: "pgData"
  309. - variable: aclEntries
  310. label: ACL Configuration
  311. schema:
  312. type: dict
  313. show_if: [["aclEnable", "=", true]]
  314. attrs: []
  315. - variable: hostPathConfig
  316. label: Host Path Configuration
  317. schema:
  318. type: dict
  319. show_if: [["type", "=", "hostPath"]]
  320. attrs:
  321. - variable: aclEnable
  322. label: Enable ACL
  323. description: Enable ACL for the dataset.
  324. schema:
  325. type: boolean
  326. # Postgres does a CHMOD at startup
  327. # Which fails with ACL
  328. hidden: true
  329. default: false
  330. - variable: acl
  331. label: ACL Configuration
  332. schema:
  333. type: dict
  334. show_if: [["aclEnable", "=", true]]
  335. attrs: []
  336. $ref:
  337. - "normalize/acl"
  338. - variable: hostPath
  339. label: Host Path
  340. description: The host path to use for storage.
  341. schema:
  342. type: hostpath
  343. show_if: [["aclEnable", "=", false]]
  344. immutable: true
  345. required: true
  346. - variable: pgBackup
  347. label: Odoo Postgres Backup Storage
  348. description: The path to store Odoo Postgres Backup.
  349. schema:
  350. type: dict
  351. attrs:
  352. - variable: type
  353. label: Type
  354. description: |
  355. ixVolume: Is dataset created automatically by the system.</br>
  356. Host Path: Is a path that already exists on the system.
  357. schema:
  358. type: string
  359. required: true
  360. immutable: true
  361. default: ixVolume
  362. enum:
  363. - value: hostPath
  364. description: Host Path (Path that already exists on the system)
  365. - value: ixVolume
  366. description: ixVolume (Dataset created automatically by the system)
  367. - variable: ixVolumeConfig
  368. label: ixVolume Configuration
  369. description: The configuration for the ixVolume dataset.
  370. schema:
  371. type: dict
  372. # Nothing to show for the user
  373. hidden: true
  374. show_if: [["type", "=", "ixVolume"]]
  375. $ref:
  376. - "normalize/ixVolume"
  377. attrs:
  378. - variable: aclEnable
  379. label: Enable ACL
  380. description: Enable ACL for the dataset.
  381. schema:
  382. type: boolean
  383. # Postgres does a CHMOD at startup
  384. # Which fails with ACL
  385. hidden: true
  386. default: false
  387. - variable: datasetName
  388. label: Dataset Name
  389. description: The name of the dataset to use for storage.
  390. schema:
  391. type: string
  392. required: true
  393. immutable: true
  394. hidden: true
  395. default: "pgBackup"
  396. - variable: aclEntries
  397. label: ACL Configuration
  398. schema:
  399. type: dict
  400. show_if: [["aclEnable", "=", true]]
  401. attrs: []
  402. - variable: hostPathConfig
  403. label: Host Path Configuration
  404. schema:
  405. type: dict
  406. show_if: [["type", "=", "hostPath"]]
  407. attrs:
  408. - variable: aclEnable
  409. label: Enable ACL
  410. description: Enable ACL for the dataset.
  411. schema:
  412. type: boolean
  413. # Postgres does a CHMOD at startup
  414. # Which fails with ACL
  415. hidden: true
  416. default: false
  417. - variable: acl
  418. label: ACL Configuration
  419. schema:
  420. type: dict
  421. show_if: [["aclEnable", "=", true]]
  422. attrs: []
  423. $ref:
  424. - "normalize/acl"
  425. - variable: hostPath
  426. label: Host Path
  427. description: The host path to use for storage.
  428. schema:
  429. type: hostpath
  430. show_if: [["aclEnable", "=", false]]
  431. immutable: true
  432. required: true
  433. - variable: additionalStorages
  434. label: Additional Storage
  435. description: Additional storage for Odoo.
  436. schema:
  437. type: list
  438. default: []
  439. items:
  440. - variable: storageEntry
  441. label: Storage Entry
  442. schema:
  443. type: dict
  444. attrs:
  445. - variable: type
  446. label: Type
  447. description: |
  448. ixVolume: Is dataset created automatically by the system.</br>
  449. Host Path: Is a path that already exists on the system.</br>
  450. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  451. schema:
  452. type: string
  453. required: true
  454. default: "ixVolume"
  455. immutable: true
  456. enum:
  457. - value: "hostPath"
  458. description: Host Path (Path that already exists on the system)
  459. - value: "ixVolume"
  460. description: ixVolume (Dataset created automatically by the system)
  461. - value: "smb-pv-pvc"
  462. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  463. - variable: readOnly
  464. label: Read Only
  465. description: Mount the volume as read only.
  466. schema:
  467. type: boolean
  468. default: false
  469. - variable: mountPath
  470. label: Mount Path
  471. description: The path inside the container to mount the storage.
  472. schema:
  473. type: path
  474. required: true
  475. - variable: hostPathConfig
  476. label: Host Path Configuration
  477. schema:
  478. type: dict
  479. show_if: [["type", "=", "hostPath"]]
  480. attrs:
  481. - variable: aclEnable
  482. label: Enable ACL
  483. description: Enable ACL for the dataset.
  484. schema:
  485. type: boolean
  486. default: false
  487. - variable: acl
  488. label: ACL Configuration
  489. schema:
  490. type: dict
  491. show_if: [["aclEnable", "=", true]]
  492. attrs: []
  493. $ref:
  494. - "normalize/acl"
  495. - variable: hostPath
  496. label: Host Path
  497. description: The host path to use for storage.
  498. schema:
  499. type: hostpath
  500. show_if: [["aclEnable", "=", false]]
  501. immutable: true
  502. required: true
  503. - variable: ixVolumeConfig
  504. label: ixVolume Configuration
  505. description: The configuration for the ixVolume dataset.
  506. schema:
  507. type: dict
  508. show_if: [["type", "=", "ixVolume"]]
  509. $ref:
  510. - "normalize/ixVolume"
  511. attrs:
  512. - variable: aclEnable
  513. label: Enable ACL
  514. description: Enable ACL for the dataset.
  515. schema:
  516. type: boolean
  517. default: false
  518. - variable: datasetName
  519. label: Dataset Name
  520. description: The name of the dataset to use for storage.
  521. schema:
  522. type: string
  523. required: true
  524. immutable: true
  525. default: "storage_entry"
  526. - variable: aclEntries
  527. label: ACL Configuration
  528. schema:
  529. type: dict
  530. show_if: [["aclEnable", "=", true]]
  531. attrs: []
  532. - variable: smbConfig
  533. label: SMB Share Configuration
  534. description: The configuration for the SMB Share.
  535. schema:
  536. type: dict
  537. show_if: [["type", "=", "smb-pv-pvc"]]
  538. attrs:
  539. - variable: server
  540. label: Server
  541. description: The server for the SMB share.
  542. schema:
  543. type: string
  544. required: true
  545. - variable: share
  546. label: Share
  547. description: The share name for the SMB share.
  548. schema:
  549. type: string
  550. required: true
  551. - variable: domain
  552. label: Domain (Optional)
  553. description: The domain for the SMB share.
  554. schema:
  555. type: string
  556. - variable: username
  557. label: Username
  558. description: The username for the SMB share.
  559. schema:
  560. type: string
  561. required: true
  562. - variable: password
  563. label: Password
  564. description: The password for the SMB share.
  565. schema:
  566. type: string
  567. required: true
  568. private: true
  569. - variable: size
  570. label: Size (in Gi)
  571. description: The size of the volume quota.
  572. schema:
  573. type: int
  574. required: true
  575. min: 1
  576. default: 1
  577. - variable: resources
  578. label: ""
  579. group: Resources Configuration
  580. schema:
  581. type: dict
  582. attrs:
  583. - variable: limits
  584. label: Limits
  585. schema:
  586. type: dict
  587. attrs:
  588. - variable: cpu
  589. label: CPU
  590. description: CPU limit for Odoo.
  591. schema:
  592. type: string
  593. max_length: 6
  594. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  595. valid_chars_error: |
  596. Valid CPU limit formats are</br>
  597. - Plain Integer - eg. 1</br>
  598. - Float - eg. 0.5</br>
  599. - Milicpu - eg. 500m
  600. default: "4000m"
  601. required: true
  602. - variable: memory
  603. label: Memory
  604. description: Memory limit for Odoo.
  605. schema:
  606. type: string
  607. max_length: 12
  608. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  609. valid_chars_error: |
  610. Valid Memory limit formats are</br>
  611. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  612. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  613. - Plain Integer in bytes - eg. 1024</br>
  614. - Exponent - eg. 134e6
  615. default: "8Gi"
  616. required: true