questions.yaml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354
  1. groups:
  2. - name: Dashy Configuration
  3. description: Configure Dashy
  4. - name: User and Group Configuration
  5. description: Configure User and Group for Dashy
  6. - name: Network Configuration
  7. description: Configure Network for Dashy
  8. - name: Storage Configuration
  9. description: Configure Storage for Dashy
  10. - name: Resources Configuration
  11. description: Configure Resources for Dashy
  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: dashyConfig
  23. label: ""
  24. group: Dashy Configuration
  25. schema:
  26. type: dict
  27. attrs:
  28. - variable: additionalEnvs
  29. label: Additional Environment Variables
  30. description: Configure additional environment variables for Dashy.
  31. schema:
  32. type: list
  33. default: []
  34. items:
  35. - variable: env
  36. label: Environment Variable
  37. schema:
  38. type: dict
  39. attrs:
  40. - variable: name
  41. label: Name
  42. schema:
  43. type: string
  44. required: true
  45. - variable: value
  46. label: Value
  47. schema:
  48. type: string
  49. required: true
  50. - variable: dashyNetwork
  51. label: ""
  52. group: Network Configuration
  53. schema:
  54. type: dict
  55. attrs:
  56. - variable: webPort
  57. label: Web Port
  58. description: The port for the Dashy Web UI.
  59. schema:
  60. type: int
  61. default: 31003
  62. min: 9000
  63. max: 65535
  64. required: true
  65. - variable: certificateID
  66. label: Certificate
  67. description: The certificate to use for Dashy
  68. schema:
  69. type: int
  70. "null": true
  71. $ref:
  72. - "definitions/certificate"
  73. - variable: hostNetwork
  74. label: Host Network
  75. description: |
  76. Bind to the host network. It's recommended to keep this disabled.</br>
  77. schema:
  78. type: boolean
  79. default: false
  80. - variable: dashyStorage
  81. label: ""
  82. group: Storage Configuration
  83. schema:
  84. type: dict
  85. attrs:
  86. - variable: data
  87. label: Dashy Data Storage
  88. description: The path to store Dashy Data.
  89. schema:
  90. type: dict
  91. attrs:
  92. - variable: type
  93. label: Type
  94. description: |
  95. ixVolume: Is dataset created automatically by the system.</br>
  96. Host Path: Is a path that already exists on the system.
  97. schema:
  98. type: string
  99. required: true
  100. immutable: true
  101. default: "ixVolume"
  102. enum:
  103. - value: "hostPath"
  104. description: Host Path (Path that already exists on the system)
  105. - value: "ixVolume"
  106. description: ixVolume (Dataset created automatically by the system)
  107. - variable: ixVolumeConfig
  108. label: ixVolume Configuration
  109. description: The configuration for the ixVolume dataset.
  110. schema:
  111. type: dict
  112. show_if: [["type", "=", "ixVolume"]]
  113. $ref:
  114. - "normalize/ixVolume"
  115. attrs:
  116. - variable: aclEnable
  117. label: Enable ACL
  118. description: Enable ACL for the dataset.
  119. schema:
  120. type: boolean
  121. default: false
  122. - variable: datasetName
  123. label: Dataset Name
  124. description: The name of the dataset to use for storage.
  125. schema:
  126. type: string
  127. required: true
  128. immutable: true
  129. hidden: true
  130. default: "data"
  131. - variable: aclEntries
  132. label: ACL Configuration
  133. schema:
  134. type: dict
  135. show_if: [["aclEnable", "=", true]]
  136. attrs: []
  137. - variable: hostPathConfig
  138. label: Host Path Configuration
  139. schema:
  140. type: dict
  141. show_if: [["type", "=", "hostPath"]]
  142. attrs:
  143. - variable: aclEnable
  144. label: Enable ACL
  145. description: Enable ACL for the dataset.
  146. schema:
  147. type: boolean
  148. default: false
  149. - variable: acl
  150. label: ACL Configuration
  151. schema:
  152. type: dict
  153. show_if: [["aclEnable", "=", true]]
  154. attrs: []
  155. $ref:
  156. - "normalize/acl"
  157. - variable: hostPath
  158. label: Host Path
  159. description: The host path to use for storage.
  160. schema:
  161. type: hostpath
  162. show_if: [["aclEnable", "=", false]]
  163. immutable: true
  164. required: true
  165. - variable: additionalStorages
  166. label: Additional Storage
  167. description: Additional storage for Dashy.
  168. schema:
  169. type: list
  170. default: []
  171. items:
  172. - variable: storageEntry
  173. label: Storage Entry
  174. schema:
  175. type: dict
  176. attrs:
  177. - variable: type
  178. label: Type
  179. description: |
  180. ixVolume: Is dataset created automatically by the system.</br>
  181. Host Path: Is a path that already exists on the system.</br>
  182. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  183. schema:
  184. type: string
  185. required: true
  186. default: "ixVolume"
  187. immutable: true
  188. enum:
  189. - value: "hostPath"
  190. description: Host Path (Path that already exists on the system)
  191. - value: "ixVolume"
  192. description: ixVolume (Dataset created automatically by the system)
  193. - value: "smb-pv-pvc"
  194. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  195. - variable: readOnly
  196. label: Read Only
  197. description: Mount the volume as read only.
  198. schema:
  199. type: boolean
  200. default: false
  201. - variable: mountPath
  202. label: Mount Path
  203. description: The path inside the container to mount the storage.
  204. schema:
  205. type: path
  206. required: true
  207. - variable: hostPathConfig
  208. label: Host Path Configuration
  209. schema:
  210. type: dict
  211. show_if: [["type", "=", "hostPath"]]
  212. attrs:
  213. - variable: aclEnable
  214. label: Enable ACL
  215. description: Enable ACL for the dataset.
  216. schema:
  217. type: boolean
  218. default: false
  219. - variable: acl
  220. label: ACL Configuration
  221. schema:
  222. type: dict
  223. show_if: [["aclEnable", "=", true]]
  224. attrs: []
  225. $ref:
  226. - "normalize/acl"
  227. - variable: hostPath
  228. label: Host Path
  229. description: The host path to use for storage.
  230. schema:
  231. type: hostpath
  232. show_if: [["aclEnable", "=", false]]
  233. immutable: true
  234. required: true
  235. - variable: ixVolumeConfig
  236. label: ixVolume Configuration
  237. description: The configuration for the ixVolume dataset.
  238. schema:
  239. type: dict
  240. show_if: [["type", "=", "ixVolume"]]
  241. $ref:
  242. - "normalize/ixVolume"
  243. attrs:
  244. - variable: aclEnable
  245. label: Enable ACL
  246. description: Enable ACL for the dataset.
  247. schema:
  248. type: boolean
  249. default: false
  250. - variable: datasetName
  251. label: Dataset Name
  252. description: The name of the dataset to use for storage.
  253. schema:
  254. type: string
  255. required: true
  256. immutable: true
  257. default: "storage_entry"
  258. - variable: aclEntries
  259. label: ACL Configuration
  260. schema:
  261. type: dict
  262. show_if: [["aclEnable", "=", true]]
  263. attrs: []
  264. - variable: smbConfig
  265. label: SMB Share Configuration
  266. description: The configuration for the SMB Share.
  267. schema:
  268. type: dict
  269. show_if: [["type", "=", "smb-pv-pvc"]]
  270. attrs:
  271. - variable: server
  272. label: Server
  273. description: The server for the SMB share.
  274. schema:
  275. type: string
  276. required: true
  277. - variable: share
  278. label: Share
  279. description: The share name for the SMB share.
  280. schema:
  281. type: string
  282. required: true
  283. - variable: domain
  284. label: Domain (Optional)
  285. description: The domain for the SMB share.
  286. schema:
  287. type: string
  288. - variable: username
  289. label: Username
  290. description: The username for the SMB share.
  291. schema:
  292. type: string
  293. required: true
  294. - variable: password
  295. label: Password
  296. description: The password for the SMB share.
  297. schema:
  298. type: string
  299. required: true
  300. private: true
  301. - variable: size
  302. label: Size (in Gi)
  303. description: The size of the volume quota.
  304. schema:
  305. type: int
  306. required: true
  307. min: 1
  308. default: 1
  309. - variable: resources
  310. group: Resources Configuration
  311. label: ""
  312. schema:
  313. type: dict
  314. attrs:
  315. - variable: limits
  316. label: Limits
  317. schema:
  318. type: dict
  319. attrs:
  320. - variable: cpu
  321. label: CPU
  322. description: CPU limit for Dashy.
  323. schema:
  324. type: string
  325. max_length: 6
  326. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  327. valid_chars_error: |
  328. Valid CPU limit formats are</br>
  329. - Plain Integer - eg. 1</br>
  330. - Float - eg. 0.5</br>
  331. - Milicpu - eg. 500m
  332. default: "4000m"
  333. required: true
  334. - variable: memory
  335. label: Memory
  336. description: Memory limit for Dashy.
  337. schema:
  338. type: string
  339. max_length: 12
  340. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  341. valid_chars_error: |
  342. Valid Memory limit formats are</br>
  343. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  344. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  345. - Plain Integer in bytes - eg. 1024</br>
  346. - Exponent - eg. 134e6
  347. default: "8Gi"
  348. required: true