questions.yaml 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  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. enum:
  113. - value: "hostPath"
  114. description: Host Path (Path that already exists on the system)
  115. - value: "ixVolume"
  116. description: ixVolume (Dataset created automatically by the system)
  117. - variable: mountPath
  118. label: Mount Path
  119. description: The path inside the container to mount the storage.
  120. schema:
  121. type: path
  122. required: true
  123. - variable: hostPath
  124. label: Host Path
  125. description: The host path to use for storage.
  126. schema:
  127. type: hostpath
  128. show_if: [["type", "=", "hostPath"]]
  129. required: true
  130. - variable: datasetName
  131. label: Dataset Name
  132. description: The name of the dataset to use for storage.
  133. schema:
  134. type: string
  135. show_if: [["type", "=", "ixVolume"]]
  136. required: true
  137. immutable: true
  138. default: "storage_entry"
  139. $ref:
  140. - "normalize/ixVolume"
  141. - variable: resources
  142. group: Resources Configuration
  143. label: ""
  144. schema:
  145. type: dict
  146. attrs:
  147. - variable: limits
  148. label: Limits
  149. schema:
  150. type: dict
  151. attrs:
  152. - variable: cpu
  153. label: CPU
  154. description: CPU limit for Draw.io.
  155. schema:
  156. type: string
  157. max_length: 6
  158. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  159. valid_chars_error: |
  160. Valid CPU limit formats are</br>
  161. - Plain Integer - eg. 1</br>
  162. - Float - eg. 0.5</br>
  163. - Milicpu - eg. 500m
  164. default: "4000m"
  165. required: true
  166. - variable: memory
  167. label: Memory
  168. description: Memory limit for Draw.io.
  169. schema:
  170. type: string
  171. max_length: 12
  172. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  173. valid_chars_error: |
  174. Valid Memory limit formats are</br>
  175. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  176. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  177. - Plain Integer in bytes - eg. 1024</br>
  178. - Exponent - eg. 134e6
  179. default: "8Gi"
  180. required: true