questions.yaml 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  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: "When this environment variable is set (is not “”), then its value will be used as server name in /etc/loolwsd/loolwsd.xml. Without this, CODE is not delivering a correct host for the websocket connection in case of a proxy in front of it."
  66. schema:
  67. type: string
  68. $ref:
  69. - "definitions/nodeIP"
  70. - variable: certificate
  71. description: |
  72. Collabora Certificate</br>
  73. If you do not choose a certificate and do not configure an external reverse proxy</br>
  74. you might have to adjust the extra_params.
  75. label: "Certificate"
  76. group: "Collabora Configuration"
  77. schema:
  78. type: int
  79. $ref:
  80. - "definitions/certificate"
  81. "null": true
  82. - variable: extraAppVolumeMounts
  83. label: "Collabora Extra Host Path Volumes"
  84. group: "Storage"
  85. schema:
  86. type: list
  87. items:
  88. - variable: extraAppVolume
  89. label: "Collabora Host Path Volume"
  90. description: "Add an extra host path volume for Collabora application"
  91. schema:
  92. type: dict
  93. attrs:
  94. - variable: mountPath
  95. label: "Mount Path in Pod"
  96. description: "Path where the volume will be mounted inside the pod"
  97. schema:
  98. type: path
  99. required: true
  100. - variable: hostPath
  101. label: "Host Path"
  102. description: "Host path"
  103. schema:
  104. type: hostpath
  105. required: true
  106. - variable: environmentVariables
  107. label: "Environment Variables"
  108. group: "Collabora Environment Variables"
  109. schema:
  110. type: list
  111. default: []
  112. items:
  113. - variable: environmentVariable
  114. label: "Environment Variable"
  115. schema:
  116. type: dict
  117. attrs:
  118. - variable: name
  119. label: "Name"
  120. schema:
  121. type: string
  122. - variable: value
  123. label: "Value"
  124. schema:
  125. type: string
  126. - variable: nodePort
  127. label: "Node Port to use for Collabora"
  128. group: "Networking"
  129. schema:
  130. type: int
  131. default: 9980
  132. min: 9000
  133. max: 65535
  134. - variable: enableResourceLimits
  135. label: "Enable Pod resource limits"
  136. group: "Resource Limits"
  137. schema:
  138. type: boolean
  139. default: false
  140. - variable: cpuLimit
  141. label: "CPU Limit"
  142. description: "CPU resource limit allow plain integer values with suffix m(milli) e.g 1000m, 100."
  143. group: "Resource Limits"
  144. schema:
  145. type: string
  146. show_if: [["enableResourceLimits", "=", true]]
  147. valid_chars: "^\\d+(?:\\.\\d+(?!.*m$)|m?$)"
  148. default: "4000m"
  149. - variable: memLimit
  150. label: "Memory Limit"
  151. group: "Resource Limits"
  152. 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"
  153. schema:
  154. type: string
  155. show_if: [["enableResourceLimits", "=", true]]
  156. valid_chars: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"
  157. default: "8Gi"