questions.yaml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  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: readOnly
  137. label: Read Only
  138. description: Mount the volume as read only.
  139. schema:
  140. type: boolean
  141. default: false
  142. - variable: mountPath
  143. label: Mount Path
  144. description: The path inside the container to mount the storage.
  145. schema:
  146. type: path
  147. required: true
  148. - variable: hostPathConfig
  149. label: Host Path Configuration
  150. schema:
  151. type: dict
  152. show_if: [["type", "=", "hostPath"]]
  153. attrs:
  154. - variable: aclEnable
  155. label: Enable ACL
  156. description: Enable ACL for the dataset.
  157. schema:
  158. type: boolean
  159. default: false
  160. - variable: acl
  161. label: ACL Configuration
  162. schema:
  163. type: dict
  164. show_if: [["aclEnable", "=", true]]
  165. attrs: []
  166. $ref:
  167. - "normalize/acl"
  168. - variable: hostPath
  169. label: Host Path
  170. description: The host path to use for storage.
  171. schema:
  172. type: hostpath
  173. show_if: [["aclEnable", "=", false]]
  174. required: true
  175. - variable: ixVolumeConfig
  176. label: ixVolume Configuration
  177. description: The configuration for the ixVolume dataset.
  178. schema:
  179. type: dict
  180. show_if: [["type", "=", "ixVolume"]]
  181. $ref:
  182. - "normalize/ixVolume"
  183. attrs:
  184. - variable: aclEnable
  185. label: Enable ACL
  186. description: Enable ACL for the dataset.
  187. schema:
  188. type: boolean
  189. default: false
  190. - variable: datasetName
  191. label: Dataset Name
  192. description: The name of the dataset to use for storage.
  193. schema:
  194. type: string
  195. required: true
  196. immutable: true
  197. default: "storage_entry"
  198. - variable: aclEntries
  199. label: ACL Configuration
  200. schema:
  201. type: dict
  202. show_if: [["aclEnable", "=", true]]
  203. attrs: []
  204. - variable: smbConfig
  205. label: SMB Share Configuration
  206. description: The configuration for the SMB Share.
  207. schema:
  208. type: dict
  209. show_if: [["type", "=", "smb-pv-pvc"]]
  210. attrs:
  211. - variable: server
  212. label: Server
  213. description: The server for the SMB share.
  214. schema:
  215. type: string
  216. required: true
  217. - variable: share
  218. label: Share
  219. description: The share name for the SMB share.
  220. schema:
  221. type: string
  222. required: true
  223. - variable: domain
  224. label: Domain (Optional)
  225. description: The domain for the SMB share.
  226. schema:
  227. type: string
  228. - variable: username
  229. label: Username
  230. description: The username for the SMB share.
  231. schema:
  232. type: string
  233. required: true
  234. - variable: password
  235. label: Password
  236. description: The password for the SMB share.
  237. schema:
  238. type: string
  239. required: true
  240. private: true
  241. - variable: size
  242. label: Size (in Gi)
  243. description: The size of the volume quota.
  244. schema:
  245. type: int
  246. required: true
  247. min: 1
  248. default: 1
  249. - variable: resources
  250. group: Resources Configuration
  251. label: ""
  252. schema:
  253. type: dict
  254. attrs:
  255. - variable: limits
  256. label: Limits
  257. schema:
  258. type: dict
  259. attrs:
  260. - variable: cpu
  261. label: CPU
  262. description: CPU limit for Whoogle.
  263. schema:
  264. type: string
  265. max_length: 6
  266. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  267. valid_chars_error: |
  268. Valid CPU limit formats are</br>
  269. - Plain Integer - eg. 1</br>
  270. - Float - eg. 0.5</br>
  271. - Milicpu - eg. 500m
  272. default: "4000m"
  273. required: true
  274. - variable: memory
  275. label: Memory
  276. description: Memory limit for Whoogle.
  277. schema:
  278. type: string
  279. max_length: 12
  280. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  281. valid_chars_error: |
  282. Valid Memory limit formats are</br>
  283. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  284. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  285. - Plain Integer in bytes - eg. 1024</br>
  286. - Exponent - eg. 134e6
  287. default: "8Gi"
  288. required: true