questions.yaml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  1. groups:
  2. - name: Draw.io Configuration
  3. description: Configure Draw.io
  4. - name: Network Configuration
  5. description: Configure Network for Draw.io
  6. - name: Storage Configuration
  7. description: Configure Storage for Draw.io
  8. - name: Resources Configuration
  9. description: Configure Resources for Draw.io
  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: drawioConfig
  21. label: ""
  22. group: Draw.io Configuration
  23. schema:
  24. type: dict
  25. attrs:
  26. - variable: additionalEnvs
  27. label: Additional Environment Variables
  28. description: Configure additional environment variables for Draw.io.
  29. schema:
  30. type: list
  31. default: []
  32. items:
  33. - variable: env
  34. label: Environment Variable
  35. schema:
  36. type: dict
  37. attrs:
  38. - variable: name
  39. label: Name
  40. schema:
  41. type: string
  42. required: true
  43. - variable: value
  44. label: Value
  45. schema:
  46. type: string
  47. required: true
  48. - variable: drawioNetwork
  49. label: ""
  50. group: Network Configuration
  51. schema:
  52. type: dict
  53. attrs:
  54. - variable: hostNetwork
  55. label: Host Network
  56. description: |
  57. Bind to the host network. It's recommended to keep this disabled.</br>
  58. schema:
  59. type: boolean
  60. default: false
  61. - variable: httpPort
  62. label: HTTP Port
  63. description: |
  64. The HTTP port for the Draw.io Web UI.
  65. You have to append [/?offline=1&https=0] to the URL
  66. schema:
  67. type: int
  68. default: 30090
  69. show_if: [["hostNetwork", "=", false]]
  70. min: 9000
  71. max: 65535
  72. required: true
  73. - variable: httpsPort
  74. label: HTTPS Port
  75. description: |
  76. The HTTPS port for the Draw.io Web UI.
  77. You have to append [/?offline=1] to the URL
  78. schema:
  79. type: int
  80. default: 30091
  81. show_if: [["hostNetwork", "=", false]]
  82. min: 9000
  83. max: 65535
  84. required: true
  85. - variable: drawioStorage
  86. label: ""
  87. group: Storage Configuration
  88. schema:
  89. type: dict
  90. attrs:
  91. - variable: additionalStorages
  92. label: Additional Storage
  93. description: Additional storage for Draw.io.
  94. schema:
  95. type: list
  96. default: []
  97. items:
  98. - variable: storageEntry
  99. label: Storage Entry
  100. schema:
  101. type: dict
  102. attrs:
  103. - variable: type
  104. label: Type
  105. description: |
  106. ixVolume: Is dataset created automatically by the system.</br>
  107. Host Path: Is a path that already exists on the system.</br>
  108. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  109. schema:
  110. type: string
  111. required: true
  112. default: "ixVolume"
  113. immutable: true
  114. enum:
  115. - value: "hostPath"
  116. description: Host Path (Path that already exists on the system)
  117. - value: "ixVolume"
  118. description: ixVolume (Dataset created automatically by the system)
  119. - value: "smb-pv-pvc"
  120. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  121. - variable: readOnly
  122. label: Read Only
  123. description: Mount the volume as read only.
  124. schema:
  125. type: boolean
  126. default: false
  127. - variable: mountPath
  128. label: Mount Path
  129. description: The path inside the container to mount the storage.
  130. schema:
  131. type: path
  132. required: true
  133. - variable: hostPathConfig
  134. label: Host Path Configuration
  135. schema:
  136. type: dict
  137. show_if: [["type", "=", "hostPath"]]
  138. attrs:
  139. - variable: aclEnable
  140. label: Enable ACL
  141. description: Enable ACL for the dataset.
  142. schema:
  143. type: boolean
  144. default: false
  145. - variable: acl
  146. label: ACL Configuration
  147. schema:
  148. type: dict
  149. show_if: [["aclEnable", "=", true]]
  150. attrs: []
  151. $ref:
  152. - "normalize/acl"
  153. - variable: hostPath
  154. label: Host Path
  155. description: The host path to use for storage.
  156. schema:
  157. type: hostpath
  158. show_if: [["aclEnable", "=", false]]
  159. required: true
  160. - variable: ixVolumeConfig
  161. label: ixVolume Configuration
  162. description: The configuration for the ixVolume dataset.
  163. schema:
  164. type: dict
  165. show_if: [["type", "=", "ixVolume"]]
  166. $ref:
  167. - "normalize/ixVolume"
  168. attrs:
  169. - variable: aclEnable
  170. label: Enable ACL
  171. description: Enable ACL for the dataset.
  172. schema:
  173. type: boolean
  174. default: false
  175. - variable: datasetName
  176. label: Dataset Name
  177. description: The name of the dataset to use for storage.
  178. schema:
  179. type: string
  180. required: true
  181. immutable: true
  182. default: "storage_entry"
  183. - variable: aclEntries
  184. label: ACL Configuration
  185. schema:
  186. type: dict
  187. show_if: [["aclEnable", "=", true]]
  188. attrs: []
  189. - variable: smbConfig
  190. label: SMB Share Configuration
  191. description: The configuration for the SMB Share.
  192. schema:
  193. type: dict
  194. show_if: [["type", "=", "smb-pv-pvc"]]
  195. attrs:
  196. - variable: server
  197. label: Server
  198. description: The server for the SMB share.
  199. schema:
  200. type: string
  201. required: true
  202. - variable: share
  203. label: Share
  204. description: The share name for the SMB share.
  205. schema:
  206. type: string
  207. required: true
  208. - variable: domain
  209. label: Domain (Optional)
  210. description: The domain for the SMB share.
  211. schema:
  212. type: string
  213. - variable: username
  214. label: Username
  215. description: The username for the SMB share.
  216. schema:
  217. type: string
  218. required: true
  219. - variable: password
  220. label: Password
  221. description: The password for the SMB share.
  222. schema:
  223. type: string
  224. required: true
  225. private: true
  226. - variable: size
  227. label: Size (in Gi)
  228. description: The size of the volume quota.
  229. schema:
  230. type: int
  231. required: true
  232. min: 1
  233. default: 1
  234. - variable: resources
  235. group: Resources Configuration
  236. label: ""
  237. schema:
  238. type: dict
  239. attrs:
  240. - variable: limits
  241. label: Limits
  242. schema:
  243. type: dict
  244. attrs:
  245. - variable: cpu
  246. label: CPU
  247. description: CPU limit for Draw.io.
  248. schema:
  249. type: string
  250. max_length: 6
  251. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  252. valid_chars_error: |
  253. Valid CPU limit formats are</br>
  254. - Plain Integer - eg. 1</br>
  255. - Float - eg. 0.5</br>
  256. - Milicpu - eg. 500m
  257. default: "4000m"
  258. required: true
  259. - variable: memory
  260. label: Memory
  261. description: Memory limit for Draw.io.
  262. schema:
  263. type: string
  264. max_length: 12
  265. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  266. valid_chars_error: |
  267. Valid Memory limit formats are</br>
  268. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  269. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  270. - Plain Integer in bytes - eg. 1024</br>
  271. - Exponent - eg. 134e6
  272. default: "8Gi"
  273. required: true