questions.yaml 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. groups:
  2. - name: Whoogle Configuration
  3. description: Configure Whoogle
  4. - name: User and Group Configuration
  5. description: Configure User and Group for Whoogle
  6. - name: Network Configuration
  7. description: Configure Network for Whoogle
  8. - name: Storage Configuration
  9. description: Configure Storage for Whoogle
  10. - name: Resources Configuration
  11. description: Configure Resources for Whoogle
  12. portals:
  13. web_portal:
  14. protocols:
  15. - "$kubernetes-resource_configmap_portal_protocol"
  16. host:
  17. - "$kubernetes-resource_configmap_portal_host"
  18. ports:
  19. - "$kubernetes-resource_configmap_portal_port"
  20. path: "$kubernetes-resource_configmap_portal_path"
  21. questions:
  22. - variable: whoogleConfig
  23. label: ""
  24. group: Whoogle Configuration
  25. schema:
  26. type: dict
  27. attrs:
  28. - variable: redirects
  29. label: Specify sites that should be redirected elsewhere
  30. description: Configure redirects for Whoogle.
  31. schema:
  32. type: list
  33. default: []
  34. items:
  35. - variable: redirect
  36. label: Redirect
  37. schema:
  38. type: dict
  39. attrs:
  40. - variable: src
  41. label: Source
  42. description: |
  43. The source domain.</br>
  44. Format: domain.tld
  45. schema:
  46. type: string
  47. required: true
  48. - variable: dst
  49. label: Destination
  50. description: |
  51. The destination domain.</br>
  52. Format: domain.tld
  53. schema:
  54. type: string
  55. required: true
  56. - variable: additionalEnvs
  57. label: Additional Environment Variables
  58. description: Configure additional environment variables for Whoogle.
  59. schema:
  60. type: list
  61. default: []
  62. items:
  63. - variable: env
  64. label: Environment Variable
  65. schema:
  66. type: dict
  67. attrs:
  68. - variable: name
  69. label: Name
  70. schema:
  71. type: string
  72. required: true
  73. - variable: value
  74. label: Value
  75. schema:
  76. type: string
  77. required: true
  78. - variable: whoogleNetwork
  79. label: ""
  80. group: Network Configuration
  81. schema:
  82. type: dict
  83. attrs:
  84. - variable: webPort
  85. label: Web Port
  86. description: The port for the Whoogle Web UI.
  87. schema:
  88. type: int
  89. default: 30098
  90. min: 9000
  91. max: 65535
  92. required: true
  93. - variable: hostNetwork
  94. label: Host Network
  95. description: |
  96. Bind to the host network. It's recommended to keep this disabled.</br>
  97. schema:
  98. type: boolean
  99. default: false
  100. - variable: whoogleStorage
  101. label: ""
  102. group: Storage Configuration
  103. schema:
  104. type: dict
  105. attrs:
  106. - variable: additionalStorages
  107. label: Additional Storage
  108. description: Additional storage for Whoogle.
  109. schema:
  110. type: list
  111. default: []
  112. items:
  113. - variable: storageEntry
  114. label: Storage Entry
  115. schema:
  116. type: dict
  117. attrs:
  118. - variable: type
  119. label: Type
  120. description: |
  121. ixVolume: Is dataset created automatically by the system.</br>
  122. Host Path: Is a path that already exists on the system.</br>
  123. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  124. schema:
  125. type: string
  126. required: true
  127. default: "ixVolume"
  128. immutable: true
  129. enum:
  130. - value: "hostPath"
  131. description: Host Path (Path that already exists on the system)
  132. - value: "ixVolume"
  133. description: ixVolume (Dataset created automatically by the system)
  134. - value: "smb-pv-pvc"
  135. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  136. - variable: mountPath
  137. label: Mount Path
  138. description: The path inside the container to mount the storage.
  139. schema:
  140. type: path
  141. required: true
  142. - variable: hostPath
  143. label: Host Path
  144. description: The host path to use for storage.
  145. schema:
  146. type: hostpath
  147. show_if: [["type", "=", "hostPath"]]
  148. required: true
  149. - variable: datasetName
  150. label: Dataset Name
  151. description: The name of the dataset to use for storage.
  152. schema:
  153. type: string
  154. show_if: [["type", "=", "ixVolume"]]
  155. required: true
  156. immutable: true
  157. default: "storage_entry"
  158. $ref:
  159. - "normalize/ixVolume"
  160. - variable: server
  161. label: Server
  162. description: The server for the SMB share.
  163. schema:
  164. type: string
  165. show_if: [["type", "=", "smb-pv-pvc"]]
  166. required: true
  167. - variable: share
  168. label: Share
  169. description: The share name for the SMB share.
  170. schema:
  171. type: string
  172. show_if: [["type", "=", "smb-pv-pvc"]]
  173. required: true
  174. - variable: domain
  175. label: Domain (Optional)
  176. description: The domain for the SMB share.
  177. schema:
  178. type: string
  179. show_if: [["type", "=", "smb-pv-pvc"]]
  180. - variable: username
  181. label: Username
  182. description: The username for the SMB share.
  183. schema:
  184. type: string
  185. show_if: [["type", "=", "smb-pv-pvc"]]
  186. required: true
  187. - variable: password
  188. label: Password
  189. description: The password for the SMB share.
  190. schema:
  191. type: string
  192. show_if: [["type", "=", "smb-pv-pvc"]]
  193. required: true
  194. private: true
  195. - variable: size
  196. label: Size (in Gi)
  197. description: The size of the volume quota.
  198. schema:
  199. type: int
  200. show_if: [["type", "=", "smb-pv-pvc"]]
  201. required: true
  202. min: 1
  203. default: 1
  204. - variable: resources
  205. group: Resources Configuration
  206. label: ""
  207. schema:
  208. type: dict
  209. attrs:
  210. - variable: limits
  211. label: Limits
  212. schema:
  213. type: dict
  214. attrs:
  215. - variable: cpu
  216. label: CPU
  217. description: CPU limit for Whoogle.
  218. schema:
  219. type: string
  220. max_length: 6
  221. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  222. valid_chars_error: |
  223. Valid CPU limit formats are</br>
  224. - Plain Integer - eg. 1</br>
  225. - Float - eg. 0.5</br>
  226. - Milicpu - eg. 500m
  227. default: "4000m"
  228. required: true
  229. - variable: memory
  230. label: Memory
  231. description: Memory limit for Whoogle.
  232. schema:
  233. type: string
  234. max_length: 12
  235. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  236. valid_chars_error: |
  237. Valid Memory limit formats are</br>
  238. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  239. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  240. - Plain Integer in bytes - eg. 1024</br>
  241. - Exponent - eg. 134e6
  242. default: "8Gi"
  243. required: true