questions.yaml 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. groups:
  2. - name: "Collabora Configuration"
  3. description: "Configure Collabora"
  4. - name: "Collabora Environment Variables"
  5. description: "Set the environment that will be visible to the container"
  6. - name: "Networking"
  7. description: "Configure Networking for Collabora"
  8. - name: "Storage"
  9. description: "Configure Storage for Collabora"
  10. - name: "Resource Limits"
  11. description: "Set CPU/memory limits for Kubernetes Pod"
  12. portals:
  13. web_portal:
  14. protocols:
  15. - "https"
  16. host:
  17. - "$variable-config.server_name"
  18. ports:
  19. - "$variable-nodePort"
  20. path: "/browser/dist/admin/admin.html"
  21. questions:
  22. - variable: config
  23. label: "Container Configuration"
  24. group: "Collabora Configuration"
  25. schema:
  26. type: dict
  27. attrs:
  28. - variable: timezone
  29. label: "Timezone"
  30. group: "Collabora Configuration"
  31. schema:
  32. type: string
  33. $ref:
  34. - "definitions/timezone"
  35. - variable: enableWebUI
  36. label: "Enable WebUI"
  37. description: |
  38. Enable WebUI for Collabora
  39. If you enable this, you will need to set a username and password</br>
  40. schema:
  41. type: boolean
  42. default: true
  43. - variable: username
  44. label: "Username for WebUI"
  45. show_if: [[enableWebUI, "=", true]]
  46. schema:
  47. type: string
  48. default: "admin"
  49. required: true
  50. - variable: password
  51. label: "Password for WebUI"
  52. schema:
  53. type: string
  54. private: true
  55. default: "changeme"
  56. show_if: [[enableWebUI, "=", true]]
  57. valid_chars: "[a-zA-Z0-9!@#%^&*?]{8,}"
  58. valid_chars_error: |
  59. Password must be at least 8 characters long</br>
  60. Can contain at numbers, letters, and the following characters: !@#%^&*?
  61. required: true
  62. - variable: aliasgroup1
  63. label: "Alias Group 1"
  64. description: |
  65. List of domains that will be allowed to access the Collabora server
  66. Type one domain per line
  67. schema:
  68. type: list
  69. items:
  70. - variable: alias
  71. label: "Alias"
  72. schema:
  73. type: string
  74. - variable: dictionaries
  75. label: "Dictionaries to use, leave empty to use all"
  76. schema:
  77. type: string
  78. default: "de_DE en_GB en_US es_ES fr_FR it nl pt_BR pt_PT ru"
  79. - variable: extra_params
  80. label: "Extra Parameters to add"
  81. description: 'e.g. "--o:welcome.enable=false", See more on /etc/loolwsd/loowsd.xml. Separate params with space'
  82. schema:
  83. type: string
  84. default: "--o:welcome.enable=false --o:user_interface.mode=notebookbar --o:ssl.termination=true --o:ssl.enable=false --o:net.proto=IPv4"
  85. - variable: server_name
  86. label: "Server Name"
  87. description: |
  88. When this environment variable is set (is not “”), then its value will be used as server name in /etc/loolwsd/loolwsd.xml.
  89. Without this, CODE is not delivering a correct host for the websocket connection in case of a proxy in front of it.</br>
  90. If a port is not specified, the below configured Node Port will be used.
  91. schema:
  92. type: string
  93. $ref:
  94. - "definitions/nodeIP"
  95. - variable: certificate
  96. description: |
  97. Collabora Certificate</br>
  98. If you do not choose a certificate and do not configure an external reverse proxy</br>
  99. you might have to adjust the extra_params.
  100. label: "Certificate"
  101. group: "Collabora Configuration"
  102. schema:
  103. type: int
  104. $ref:
  105. - "definitions/certificate"
  106. "null": true
  107. - variable: extraAppVolumeMounts
  108. label: "Collabora Extra Host Path Volumes"
  109. group: "Storage"
  110. schema:
  111. type: list
  112. items:
  113. - variable: extraAppVolume
  114. label: "Collabora Host Path Volume"
  115. description: "Add an extra host path volume for Collabora application"
  116. schema:
  117. type: dict
  118. attrs:
  119. - variable: mountPath
  120. label: "Mount Path in Pod"
  121. description: "Path where the volume will be mounted inside the pod"
  122. schema:
  123. type: path
  124. required: true
  125. - variable: hostPath
  126. label: "Host Path"
  127. description: "Host path"
  128. schema:
  129. type: hostpath
  130. required: true
  131. - variable: environmentVariables
  132. label: "Environment Variables"
  133. group: "Collabora Environment Variables"
  134. schema:
  135. type: list
  136. default: []
  137. items:
  138. - variable: environmentVariable
  139. label: "Environment Variable"
  140. schema:
  141. type: dict
  142. attrs:
  143. - variable: name
  144. label: "Name"
  145. schema:
  146. type: string
  147. - variable: value
  148. label: "Value"
  149. schema:
  150. type: string
  151. - variable: nodePort
  152. label: "Node Port to use for Collabora"
  153. group: "Networking"
  154. schema:
  155. type: int
  156. default: 9980
  157. min: 9000
  158. max: 65535
  159. - variable: enableResourceLimits
  160. label: "Enable Pod resource limits"
  161. group: "Resource Limits"
  162. schema:
  163. type: boolean
  164. default: false
  165. - variable: cpuLimit
  166. label: "CPU Limit"
  167. description: "CPU resource limit allow plain integer values with suffix m(milli) e.g 1000m, 100."
  168. group: "Resource Limits"
  169. schema:
  170. type: string
  171. show_if: [["enableResourceLimits", "=", true]]
  172. valid_chars: "^\\d+(?:\\.\\d+(?!.*m$)|m?$)"
  173. default: "4000m"
  174. - variable: memLimit
  175. label: "Memory Limit"
  176. group: "Resource Limits"
  177. description: "Memory limits is specified by number of bytes. Followed by quantity suffix like E,P,T,G,M,k and Ei,Pi,Ti,Mi,Gi,Ki can also be used. e.g 129e6, 129M, 128974848000m, 123Mi"
  178. schema:
  179. type: string
  180. show_if: [["enableResourceLimits", "=", true]]
  181. valid_chars: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"
  182. default: "8Gi"