questions.yaml 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  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.
  123. schema:
  124. type: string
  125. required: true
  126. default: "ixVolume"
  127. immutable: true
  128. enum:
  129. - value: "hostPath"
  130. description: Host Path (Path that already exists on the system)
  131. - value: "ixVolume"
  132. description: ixVolume (Dataset created automatically by the system)
  133. - value: "smb-pv-pvc"
  134. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  135. - variable: mountPath
  136. label: Mount Path
  137. description: The path inside the container to mount the storage.
  138. schema:
  139. type: path
  140. required: true
  141. - variable: hostPath
  142. label: Host Path
  143. description: The host path to use for storage.
  144. schema:
  145. type: hostpath
  146. show_if: [["type", "=", "hostPath"]]
  147. required: true
  148. - variable: datasetName
  149. label: Dataset Name
  150. description: The name of the dataset to use for storage.
  151. schema:
  152. type: string
  153. show_if: [["type", "=", "ixVolume"]]
  154. required: true
  155. immutable: true
  156. default: "storage_entry"
  157. $ref:
  158. - "normalize/ixVolume"
  159. - variable: server
  160. label: Server
  161. description: The server for the SMB share.
  162. schema:
  163. type: string
  164. show_if: [["type", "=", "smb-pv-pvc"]]
  165. required: true
  166. - variable: share
  167. label: Share
  168. description: The share name for the SMB share.
  169. schema:
  170. type: string
  171. show_if: [["type", "=", "smb-pv-pvc"]]
  172. required: true
  173. - variable: domain
  174. label: Domain (Optional)
  175. description: The domain for the SMB share.
  176. schema:
  177. type: string
  178. show_if: [["type", "=", "smb-pv-pvc"]]
  179. - variable: username
  180. label: Username
  181. description: The username for the SMB share.
  182. schema:
  183. type: string
  184. show_if: [["type", "=", "smb-pv-pvc"]]
  185. required: true
  186. - variable: password
  187. label: Password
  188. description: The password for the SMB share.
  189. schema:
  190. type: string
  191. show_if: [["type", "=", "smb-pv-pvc"]]
  192. required: true
  193. private: true
  194. - variable: size
  195. label: Size (in Gi)
  196. description: The size of the volume quota.
  197. schema:
  198. type: int
  199. show_if: [["type", "=", "smb-pv-pvc"]]
  200. required: true
  201. min: 1
  202. default: 1
  203. - variable: resources
  204. group: Resources Configuration
  205. label: ""
  206. schema:
  207. type: dict
  208. attrs:
  209. - variable: limits
  210. label: Limits
  211. schema:
  212. type: dict
  213. attrs:
  214. - variable: cpu
  215. label: CPU
  216. description: CPU limit for Whoogle.
  217. schema:
  218. type: string
  219. max_length: 6
  220. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  221. valid_chars_error: |
  222. Valid CPU limit formats are</br>
  223. - Plain Integer - eg. 1</br>
  224. - Float - eg. 0.5</br>
  225. - Milicpu - eg. 500m
  226. default: "4000m"
  227. required: true
  228. - variable: memory
  229. label: Memory
  230. description: Memory limit for Whoogle.
  231. schema:
  232. type: string
  233. max_length: 12
  234. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  235. valid_chars_error: |
  236. Valid Memory limit formats are</br>
  237. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  238. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  239. - Plain Integer in bytes - eg. 1024</br>
  240. - Exponent - eg. 134e6
  241. default: "8Gi"
  242. required: true