questions.yaml 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  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.
  108. schema:
  109. type: string
  110. required: true
  111. default: "ixVolume"
  112. immutable: true
  113. enum:
  114. - value: "hostPath"
  115. description: Host Path (Path that already exists on the system)
  116. - value: "ixVolume"
  117. description: ixVolume (Dataset created automatically by the system)
  118. - value: "smb-pv-pvc"
  119. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  120. - variable: mountPath
  121. label: Mount Path
  122. description: The path inside the container to mount the storage.
  123. schema:
  124. type: path
  125. required: true
  126. - variable: hostPath
  127. label: Host Path
  128. description: The host path to use for storage.
  129. schema:
  130. type: hostpath
  131. show_if: [["type", "=", "hostPath"]]
  132. required: true
  133. - variable: datasetName
  134. label: Dataset Name
  135. description: The name of the dataset to use for storage.
  136. schema:
  137. type: string
  138. show_if: [["type", "=", "ixVolume"]]
  139. required: true
  140. immutable: true
  141. default: "storage_entry"
  142. $ref:
  143. - "normalize/ixVolume"
  144. - variable: server
  145. label: Server
  146. description: The server for the SMB share.
  147. schema:
  148. type: string
  149. show_if: [["type", "=", "smb-pv-pvc"]]
  150. required: true
  151. - variable: share
  152. label: Share
  153. description: The share name for the SMB share.
  154. schema:
  155. type: string
  156. show_if: [["type", "=", "smb-pv-pvc"]]
  157. required: true
  158. - variable: domain
  159. label: Domain (Optional)
  160. description: The domain for the SMB share.
  161. schema:
  162. type: string
  163. show_if: [["type", "=", "smb-pv-pvc"]]
  164. - variable: username
  165. label: Username
  166. description: The username for the SMB share.
  167. schema:
  168. type: string
  169. show_if: [["type", "=", "smb-pv-pvc"]]
  170. required: true
  171. - variable: password
  172. label: Password
  173. description: The password for the SMB share.
  174. schema:
  175. type: string
  176. show_if: [["type", "=", "smb-pv-pvc"]]
  177. required: true
  178. private: true
  179. - variable: size
  180. label: Size (in Gi)
  181. description: The size of the volume quota.
  182. schema:
  183. type: int
  184. show_if: [["type", "=", "smb-pv-pvc"]]
  185. required: true
  186. min: 1
  187. default: 1
  188. - variable: resources
  189. group: Resources Configuration
  190. label: ""
  191. schema:
  192. type: dict
  193. attrs:
  194. - variable: limits
  195. label: Limits
  196. schema:
  197. type: dict
  198. attrs:
  199. - variable: cpu
  200. label: CPU
  201. description: CPU limit for Draw.io.
  202. schema:
  203. type: string
  204. max_length: 6
  205. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  206. valid_chars_error: |
  207. Valid CPU limit formats are</br>
  208. - Plain Integer - eg. 1</br>
  209. - Float - eg. 0.5</br>
  210. - Milicpu - eg. 500m
  211. default: "4000m"
  212. required: true
  213. - variable: memory
  214. label: Memory
  215. description: Memory limit for Draw.io.
  216. schema:
  217. type: string
  218. max_length: 12
  219. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  220. valid_chars_error: |
  221. Valid Memory limit formats are</br>
  222. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  223. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  224. - Plain Integer in bytes - eg. 1024</br>
  225. - Exponent - eg. 134e6
  226. default: "8Gi"
  227. required: true