questions.yaml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  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: datasetName
  123. label: Dataset Name
  124. schema:
  125. type: string
  126. show_if: [["type", "=", "ixVolume"]]
  127. required: true
  128. hidden: true
  129. immutable: true
  130. default: data
  131. $ref:
  132. - "normalize/ixVolume"
  133. - variable: hostPath
  134. label: Host Path
  135. schema:
  136. type: hostpath
  137. show_if: [["type", "=", "hostPath"]]
  138. immutable: true
  139. required: true
  140. - variable: addons
  141. label: Odoo Addons Storage
  142. description: The path to store Odoo addons storage.
  143. schema:
  144. type: dict
  145. attrs:
  146. - variable: type
  147. label: Type
  148. description: |
  149. ixVolume: Is dataset created automatically by the system.</br>
  150. Host Path: Is a path that already exists on the system.
  151. schema:
  152. type: string
  153. required: true
  154. immutable: true
  155. default: ixVolume
  156. enum:
  157. - value: hostPath
  158. description: Host Path (Path that already exists on the system)
  159. - value: ixVolume
  160. description: ixVolume (Dataset created automatically by the system)
  161. - variable: datasetName
  162. label: Dataset Name
  163. schema:
  164. type: string
  165. show_if: [["type", "=", "ixVolume"]]
  166. required: true
  167. hidden: true
  168. immutable: true
  169. default: addons
  170. $ref:
  171. - "normalize/ixVolume"
  172. - variable: hostPath
  173. label: Host Path
  174. schema:
  175. type: hostpath
  176. show_if: [["type", "=", "hostPath"]]
  177. immutable: true
  178. required: true
  179. - variable: pgData
  180. label: Odoo Postgres Data Storage
  181. description: The path to store Odoo Postgres Data.
  182. schema:
  183. type: dict
  184. attrs:
  185. - variable: type
  186. label: Type
  187. description: |
  188. ixVolume: Is dataset created automatically by the system.</br>
  189. Host Path: Is a path that already exists on the system.
  190. schema:
  191. type: string
  192. required: true
  193. immutable: true
  194. default: ixVolume
  195. enum:
  196. - value: hostPath
  197. description: Host Path (Path that already exists on the system)
  198. - value: ixVolume
  199. description: ixVolume (Dataset created automatically by the system)
  200. - variable: datasetName
  201. label: Dataset Name
  202. schema:
  203. type: string
  204. show_if: [["type", "=", "ixVolume"]]
  205. required: true
  206. hidden: true
  207. immutable: true
  208. default: pgData
  209. $ref:
  210. - "normalize/ixVolume"
  211. - variable: hostPath
  212. label: Host Path
  213. schema:
  214. type: hostpath
  215. show_if: [["type", "=", "hostPath"]]
  216. immutable: true
  217. required: true
  218. - variable: pgBackup
  219. label: Odoo Postgres Backup Storage
  220. description: The path to store Odoo Postgres Backup.
  221. schema:
  222. type: dict
  223. attrs:
  224. - variable: type
  225. label: Type
  226. description: |
  227. ixVolume: Is dataset created automatically by the system.</br>
  228. Host Path: Is a path that already exists on the system.
  229. schema:
  230. type: string
  231. required: true
  232. immutable: true
  233. default: ixVolume
  234. enum:
  235. - value: hostPath
  236. description: Host Path (Path that already exists on the system)
  237. - value: ixVolume
  238. description: ixVolume (Dataset created automatically by the system)
  239. - variable: datasetName
  240. label: Dataset Name
  241. schema:
  242. type: string
  243. show_if: [["type", "=", "ixVolume"]]
  244. required: true
  245. hidden: true
  246. immutable: true
  247. default: pgBackup
  248. $ref:
  249. - "normalize/ixVolume"
  250. - variable: hostPath
  251. label: Host Path
  252. schema:
  253. type: hostpath
  254. show_if: [["type", "=", "hostPath"]]
  255. immutable: true
  256. required: true
  257. - variable: resources
  258. label: ""
  259. group: Resources Configuration
  260. schema:
  261. type: dict
  262. attrs:
  263. - variable: limits
  264. label: Limits
  265. schema:
  266. type: dict
  267. attrs:
  268. - variable: cpu
  269. label: CPU
  270. description: CPU limit for Odoo.
  271. schema:
  272. type: string
  273. max_length: 6
  274. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  275. valid_chars_error: |
  276. Valid CPU limit formats are</br>
  277. - Plain Integer - eg. 1</br>
  278. - Float - eg. 0.5</br>
  279. - Milicpu - eg. 500m
  280. default: "4000m"
  281. required: true
  282. - variable: memory
  283. label: Memory
  284. description: Memory limit for Odoo.
  285. schema:
  286. type: string
  287. max_length: 12
  288. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  289. valid_chars_error: |
  290. Valid Memory limit formats are</br>
  291. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  292. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  293. - Plain Integer in bytes - eg. 1024</br>
  294. - Exponent - eg. 134e6
  295. default: "8Gi"
  296. required: true