questions.yaml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  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. required: true
  49. - variable: dictionaries
  50. label: "Dictionaries to use, leave empty to use all"
  51. schema:
  52. type: string
  53. default: "de_DE en_GB en_US es_ES fr_FR it nl pt_BR pt_PT ru"
  54. - variable: extra_params
  55. label: "Extra Parameters to add"
  56. description: 'e.g. "--o:welcome.enable=false", See more on /etc/loolwsd/loowsd.xml. Separate params with space'
  57. schema:
  58. type: string
  59. 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]=.+"
  60. - variable: server_name
  61. label: "Server Name"
  62. 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."
  63. schema:
  64. type: string
  65. $ref:
  66. - "definitions/nodeIP"
  67. - variable: certificate
  68. description: "Collabora Certificate"
  69. label: "Certificate"
  70. group: "Collabora Configuration"
  71. schema:
  72. type: int
  73. $ref:
  74. - "definitions/certificate"
  75. "null": false
  76. - variable: extraAppVolumeMounts
  77. label: "Collabora Extra Host Path Volumes"
  78. group: "Storage"
  79. schema:
  80. type: list
  81. items:
  82. - variable: extraAppVolume
  83. label: "Collabora Host Path Volume"
  84. description: "Add an extra host path volume for Collabora application"
  85. schema:
  86. type: dict
  87. attrs:
  88. - variable: mountPath
  89. label: "Mount Path in Pod"
  90. description: "Path where the volume will be mounted inside the pod"
  91. schema:
  92. type: path
  93. required: true
  94. - variable: hostPath
  95. label: "Host Path"
  96. description: "Host path"
  97. schema:
  98. type: hostpath
  99. required: true
  100. - variable: environmentVariables
  101. label: "Environment Variables"
  102. group: "Collabora Environment Variables"
  103. schema:
  104. type: list
  105. default: []
  106. items:
  107. - variable: environmentVariable
  108. label: "Environment Variable"
  109. schema:
  110. type: dict
  111. attrs:
  112. - variable: name
  113. label: "Name"
  114. schema:
  115. type: string
  116. - variable: value
  117. label: "Value"
  118. schema:
  119. type: string
  120. - variable: nodePort
  121. label: "Node Port to use for Collabora"
  122. group: "Networking"
  123. schema:
  124. type: int
  125. default: 9980
  126. min: 9000
  127. max: 65535
  128. - variable: enableResourceLimits
  129. label: "Enable Pod resource limits"
  130. group: "Resource Limits"
  131. schema:
  132. type: boolean
  133. default: false
  134. - variable: cpuLimit
  135. label: "CPU Limit"
  136. description: "CPU resource limit allow plain integer values with suffix m(milli) e.g 1000m, 100."
  137. group: "Resource Limits"
  138. schema:
  139. type: string
  140. show_if: [["enableResourceLimits", "=", true]]
  141. valid_chars: "^\\d+(?:\\.\\d+(?!.*m$)|m?$)"
  142. default: "4000m"
  143. - variable: memLimit
  144. label: "Memory Limit"
  145. group: "Resource Limits"
  146. 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"
  147. schema:
  148. type: string
  149. show_if: [["enableResourceLimits", "=", true]]
  150. valid_chars: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"
  151. default: "8Gi"