questions.yaml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  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: hostPathConfig
  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. required: true
  164. - variable: additionalStorages
  165. label: Additional Storage
  166. description: Additional storage for Dashy.
  167. schema:
  168. type: list
  169. default: []
  170. items:
  171. - variable: storageEntry
  172. label: Storage Entry
  173. schema:
  174. type: dict
  175. attrs:
  176. - variable: type
  177. label: Type
  178. description: |
  179. ixVolume: Is dataset created automatically by the system.</br>
  180. Host Path: Is a path that already exists on the system.</br>
  181. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  182. schema:
  183. type: string
  184. required: true
  185. default: "ixVolume"
  186. immutable: true
  187. enum:
  188. - value: "hostPath"
  189. description: Host Path (Path that already exists on the system)
  190. - value: "ixVolume"
  191. description: ixVolume (Dataset created automatically by the system)
  192. - value: "smb-pv-pvc"
  193. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  194. - variable: readOnly
  195. label: Read Only
  196. description: Mount the volume as read only.
  197. schema:
  198. type: boolean
  199. default: false
  200. - variable: mountPath
  201. label: Mount Path
  202. description: The path inside the container to mount the storage.
  203. schema:
  204. type: path
  205. required: true
  206. - variable: hostPathConfig
  207. label: hostPathConfig
  208. schema:
  209. type: dict
  210. show_if: [["type", "=", "hostPath"]]
  211. attrs:
  212. - variable: aclEnable
  213. label: Enable ACL
  214. description: Enable ACL for the dataset.
  215. schema:
  216. type: boolean
  217. default: false
  218. - variable: acl
  219. label: ACL Configuration
  220. schema:
  221. type: dict
  222. show_if: [["aclEnable", "=", true]]
  223. attrs: []
  224. $ref:
  225. - "normalize/acl"
  226. - variable: hostPath
  227. label: Host Path
  228. description: The host path to use for storage.
  229. schema:
  230. type: hostpath
  231. show_if: [["aclEnable", "=", false]]
  232. required: true
  233. - variable: ixVolumeConfig
  234. label: ixVolume Configuration
  235. description: The configuration for the ixVolume dataset.
  236. schema:
  237. type: dict
  238. show_if: [["type", "=", "ixVolume"]]
  239. $ref:
  240. - "normalize/ixVolume"
  241. attrs:
  242. - variable: aclEnable
  243. label: Enable ACL
  244. description: Enable ACL for the dataset.
  245. schema:
  246. type: boolean
  247. default: false
  248. - variable: datasetName
  249. label: Dataset Name
  250. description: The name of the dataset to use for storage.
  251. schema:
  252. type: string
  253. required: true
  254. immutable: true
  255. default: "storage_entry"
  256. - variable: aclEntries
  257. label: ACL Configuration
  258. schema:
  259. type: dict
  260. show_if: [["aclEnable", "=", true]]
  261. attrs: []
  262. - variable: smbConfig
  263. label: SMB Share Configuration
  264. description: The configuration for the SMB Share.
  265. schema:
  266. type: dict
  267. show_if: [["type", "=", "smb-pv-pvc"]]
  268. attrs:
  269. - variable: server
  270. label: Server
  271. description: The server for the SMB share.
  272. schema:
  273. type: string
  274. required: true
  275. - variable: share
  276. label: Share
  277. description: The share name for the SMB share.
  278. schema:
  279. type: string
  280. required: true
  281. - variable: domain
  282. label: Domain (Optional)
  283. description: The domain for the SMB share.
  284. schema:
  285. type: string
  286. - variable: username
  287. label: Username
  288. description: The username for the SMB share.
  289. schema:
  290. type: string
  291. required: true
  292. - variable: password
  293. label: Password
  294. description: The password for the SMB share.
  295. schema:
  296. type: string
  297. required: true
  298. private: true
  299. - variable: size
  300. label: Size (in Gi)
  301. description: The size of the volume quota.
  302. schema:
  303. type: int
  304. required: true
  305. min: 1
  306. default: 1
  307. - variable: resources
  308. group: Resources Configuration
  309. label: ""
  310. schema:
  311. type: dict
  312. attrs:
  313. - variable: limits
  314. label: Limits
  315. schema:
  316. type: dict
  317. attrs:
  318. - variable: cpu
  319. label: CPU
  320. description: CPU limit for Dashy.
  321. schema:
  322. type: string
  323. max_length: 6
  324. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  325. valid_chars_error: |
  326. Valid CPU limit formats are</br>
  327. - Plain Integer - eg. 1</br>
  328. - Float - eg. 0.5</br>
  329. - Milicpu - eg. 500m
  330. default: "4000m"
  331. required: true
  332. - variable: memory
  333. label: Memory
  334. description: Memory limit for Dashy.
  335. schema:
  336. type: string
  337. max_length: 12
  338. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  339. valid_chars_error: |
  340. Valid Memory limit formats are</br>
  341. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  342. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  343. - Plain Integer in bytes - eg. 1024</br>
  344. - Exponent - eg. 134e6
  345. default: "8Gi"
  346. required: true