questions.yaml 5.2 KB

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