questions.yaml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  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: username
  36. label: "Username for WebUI"
  37. schema:
  38. type: string
  39. default: "admin"
  40. required: true
  41. - variable: password
  42. label: "Password for WebUI"
  43. schema:
  44. type: string
  45. private: true
  46. default: "changeme"
  47. valid_chars: "[a-zA-Z0-9!@#%^&*?]{8,}"
  48. valid_chars_error: |
  49. Password must be at least 8 characters long</br>
  50. Can contain at numbers, letters, and the following characters: !@#%^&*?
  51. required: true
  52. - variable: dictionaries
  53. label: "Dictionaries to use, leave empty to use all"
  54. schema:
  55. type: string
  56. default: "de_DE en_GB en_US es_ES fr_FR it nl pt_BR pt_PT ru"
  57. - variable: extra_params
  58. label: "Extra Parameters to add"
  59. description: 'e.g. "--o:welcome.enable=false", See more on /etc/loolwsd/loowsd.xml. Separate params with space'
  60. schema:
  61. type: string
  62. default: "--o:welcome.enable=false --o:user_interface.mode=notebookbar --o:ssl.termination=true --o:ssl.enable=false --o:net.proto=IPv4 --o:net.post_allow.host[0]=.+ --o:storage.wopi.host[0]=.+"
  63. - variable: server_name
  64. label: "Server Name"
  65. description: |
  66. When this environment variable is set (is not “”), then its value will be used as server name in /etc/loolwsd/loolwsd.xml.
  67. Without this, CODE is not delivering a correct host for the websocket connection in case of a proxy in front of it.</br>
  68. If a port is not specified, the below configured Node Port will be used.
  69. schema:
  70. type: string
  71. $ref:
  72. - "definitions/nodeIP"
  73. - variable: certificate
  74. description: |
  75. Collabora Certificate</br>
  76. If you do not choose a certificate and do not configure an external reverse proxy</br>
  77. you might have to adjust the extra_params.
  78. label: "Certificate"
  79. group: "Collabora Configuration"
  80. schema:
  81. type: int
  82. $ref:
  83. - "definitions/certificate"
  84. "null": true
  85. - variable: extraAppVolumeMounts
  86. label: "Collabora Extra Host Path Volumes"
  87. group: "Storage"
  88. schema:
  89. type: list
  90. items:
  91. - variable: extraAppVolume
  92. label: "Collabora Host Path Volume"
  93. description: "Add an extra host path volume for Collabora application"
  94. schema:
  95. type: dict
  96. attrs:
  97. - variable: mountPath
  98. label: "Mount Path in Pod"
  99. description: "Path where the volume will be mounted inside the pod"
  100. schema:
  101. type: path
  102. required: true
  103. - variable: hostPath
  104. label: "Host Path"
  105. description: "Host path"
  106. schema:
  107. type: hostpath
  108. required: true
  109. - variable: environmentVariables
  110. label: "Environment Variables"
  111. group: "Collabora Environment Variables"
  112. schema:
  113. type: list
  114. default: []
  115. items:
  116. - variable: environmentVariable
  117. label: "Environment Variable"
  118. schema:
  119. type: dict
  120. attrs:
  121. - variable: name
  122. label: "Name"
  123. schema:
  124. type: string
  125. - variable: value
  126. label: "Value"
  127. schema:
  128. type: string
  129. - variable: nodePort
  130. label: "Node Port to use for Collabora"
  131. group: "Networking"
  132. schema:
  133. type: int
  134. default: 9980
  135. min: 9000
  136. max: 65535
  137. - variable: enableResourceLimits
  138. label: "Enable Pod resource limits"
  139. group: "Resource Limits"
  140. schema:
  141. type: boolean
  142. default: false
  143. - variable: cpuLimit
  144. label: "CPU Limit"
  145. description: "CPU resource limit allow plain integer values with suffix m(milli) e.g 1000m, 100."
  146. group: "Resource Limits"
  147. schema:
  148. type: string
  149. show_if: [["enableResourceLimits", "=", true]]
  150. valid_chars: "^\\d+(?:\\.\\d+(?!.*m$)|m?$)"
  151. default: "4000m"
  152. - variable: memLimit
  153. label: "Memory Limit"
  154. group: "Resource Limits"
  155. 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"
  156. schema:
  157. type: string
  158. show_if: [["enableResourceLimits", "=", true]]
  159. valid_chars: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"
  160. default: "8Gi"