questions.yaml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491
  1. groups:
  2. - name: SFTPGo Configuration
  3. description: Configure SFTPGo
  4. - name: User and Group Configuration
  5. description: Configure User and Group for SFTPGo
  6. - name: Network Configuration
  7. description: Configure Network for SFTPGo
  8. - name: Storage Configuration
  9. description: Configure Storage for SFTPGo
  10. - name: Resources Configuration
  11. description: Configure Resources for SFTPGo
  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: sftpgoConfig
  23. label: ""
  24. group: SFTPGo Configuration
  25. schema:
  26. type: dict
  27. attrs:
  28. - variable: imageSelector
  29. label: Image Selector
  30. description: The image to use for SFTPGo.
  31. schema:
  32. type: string
  33. default: "image"
  34. required: true
  35. enum:
  36. - value: "image"
  37. description: Default Image
  38. - value: "pluginsImage"
  39. description: Plugins Image
  40. - variable: graceTime
  41. label: Grace Time
  42. description: The time in seconds to wait for connections to close before shutting down.
  43. schema:
  44. type: int
  45. default: 60
  46. min: 1
  47. required: true
  48. - variable: additionalEnvs
  49. label: Additional Environment Variables
  50. description: Configure additional environment variables for SFTPGo.
  51. schema:
  52. type: list
  53. default: []
  54. items:
  55. - variable: env
  56. label: Environment Variable
  57. schema:
  58. type: dict
  59. attrs:
  60. - variable: name
  61. label: Name
  62. schema:
  63. type: string
  64. required: true
  65. - variable: value
  66. label: Value
  67. schema:
  68. type: string
  69. required: true
  70. - variable: sftpgoRunAs
  71. label: ""
  72. group: User and Group Configuration
  73. schema:
  74. type: dict
  75. attrs:
  76. - variable: user
  77. label: User ID
  78. description: The user id that SFTPGo will run as.
  79. schema:
  80. type: int
  81. min: 2
  82. default: 568
  83. required: true
  84. - variable: group
  85. label: Group ID
  86. description: The group id that SFTPGo will run as.
  87. schema:
  88. type: int
  89. min: 2
  90. default: 568
  91. required: true
  92. - variable: sftpgoNetwork
  93. label: ""
  94. group: Network Configuration
  95. schema:
  96. type: dict
  97. attrs:
  98. - variable: hostNetwork
  99. label: Host Network
  100. description: |
  101. Bind to the host network. It's recommended to keep this disabled.</br>
  102. schema:
  103. type: boolean
  104. default: false
  105. - variable: certificateID
  106. label: Certificate
  107. description: The certificate to use for SFTPGo WebUI
  108. schema:
  109. type: int
  110. "null": true
  111. $ref:
  112. - "definitions/certificate"
  113. - variable: webPort
  114. label: Web Port
  115. description: The port for the SFTPGo Web UI.
  116. schema:
  117. type: int
  118. default: 30086
  119. min: 9000
  120. max: 65535
  121. required: true
  122. - variable: webdavdServices
  123. label: WebDAVd Services
  124. description: Enable one or more WebDAVd services.
  125. schema:
  126. type: list
  127. default: []
  128. items:
  129. - variable: webdavdServiceEntry
  130. label: WebDAVd Service Entry
  131. schema:
  132. type: dict
  133. attrs:
  134. - variable: enabled
  135. label: Enabled
  136. description: Enable this WebDAVd service.
  137. schema:
  138. type: boolean
  139. default: false
  140. - variable: port
  141. label: Port
  142. description: The port for WebDAVd.
  143. schema:
  144. type: int
  145. default: 30089
  146. min: 9000
  147. max: 65535
  148. required: true
  149. - variable: sftpdServices
  150. label: SFTPd Services
  151. description: Enable one or more SFTPd services.
  152. schema:
  153. type: list
  154. default: []
  155. items:
  156. - variable: sftpdServiceEntry
  157. label: SFTPd Service Entry
  158. schema:
  159. type: dict
  160. attrs:
  161. - variable: enabled
  162. label: Enabled
  163. description: Enable this SFTPd service.
  164. schema:
  165. type: boolean
  166. default: false
  167. - variable: port
  168. label: Port
  169. description: The port for SFTPd.
  170. schema:
  171. type: int
  172. default: 30087
  173. min: 9000
  174. max: 65535
  175. required: true
  176. - variable: ftpdServices
  177. label: FTPd Services
  178. description: Enable one or more FTPd services.
  179. schema:
  180. type: list
  181. default: []
  182. items:
  183. - variable: ftpdServiceEntry
  184. label: FTPd Service Entry
  185. schema:
  186. type: dict
  187. attrs:
  188. - variable: enabled
  189. label: Enabled
  190. description: Enable this FTPd service.
  191. schema:
  192. type: boolean
  193. default: false
  194. - variable: port
  195. label: Port
  196. description: The port for FTPd.
  197. schema:
  198. type: int
  199. default: 30088
  200. min: 9000
  201. max: 65535
  202. required: true
  203. - variable: ftpdPassivePortRange
  204. label: FTPd Passive Port Range
  205. description: The port range for FTPd passive connections.
  206. schema:
  207. type: dict
  208. show_if: [["ftpdServices", "!=", []]]
  209. attrs:
  210. - variable: start
  211. label: Start
  212. description: The start of the port range.
  213. schema:
  214. type: int
  215. default: 50000
  216. min: 9000
  217. max: 65535
  218. required: true
  219. - variable: end
  220. label: End
  221. description: The end of the port range.
  222. schema:
  223. type: int
  224. default: 50001
  225. min: 9000
  226. max: 65535
  227. required: true
  228. - variable: sftpgoStorage
  229. label: ""
  230. group: Storage Configuration
  231. schema:
  232. type: dict
  233. attrs:
  234. - variable: config
  235. label: SFTPGo Config Storage
  236. description: The path to store SFTPGo Configuration.
  237. schema:
  238. type: dict
  239. attrs:
  240. - variable: type
  241. label: Type
  242. description: |
  243. ixVolume: Is dataset created automatically by the system.</br>
  244. Host Path: Is a path that already exists on the system.
  245. schema:
  246. type: string
  247. required: true
  248. immutable: true
  249. default: "ixVolume"
  250. enum:
  251. - value: "hostPath"
  252. description: Host Path (Path that already exists on the system)
  253. - value: "ixVolume"
  254. description: ixVolume (Dataset created automatically by the system)
  255. - variable: datasetName
  256. label: Dataset Name
  257. schema:
  258. type: string
  259. show_if: [["type", "=", "ixVolume"]]
  260. required: true
  261. hidden: true
  262. immutable: true
  263. default: "config"
  264. $ref:
  265. - "normalize/ixVolume"
  266. - variable: hostPath
  267. label: Host Path
  268. schema:
  269. type: hostpath
  270. show_if: [["type", "=", "hostPath"]]
  271. required: true
  272. - variable: data
  273. label: SFTPGo Data Storage
  274. description: The path to store SFTPGo Data.
  275. schema:
  276. type: dict
  277. attrs:
  278. - variable: type
  279. label: Type
  280. description: |
  281. ixVolume: Is dataset created automatically by the system.</br>
  282. Host Path: Is a path that already exists on the system.
  283. schema:
  284. type: string
  285. required: true
  286. immutable: true
  287. default: "ixVolume"
  288. enum:
  289. - value: "hostPath"
  290. description: Host Path (Path that already exists on the system)
  291. - value: "ixVolume"
  292. description: ixVolume (Dataset created automatically by the system)
  293. - variable: datasetName
  294. label: Dataset Name
  295. schema:
  296. type: string
  297. show_if: [["type", "=", "ixVolume"]]
  298. required: true
  299. hidden: true
  300. immutable: true
  301. default: "data"
  302. $ref:
  303. - "normalize/ixVolume"
  304. - variable: hostPath
  305. label: Host Path
  306. schema:
  307. type: hostpath
  308. show_if: [["type", "=", "hostPath"]]
  309. required: true
  310. - variable: backups
  311. label: SFTPGo Backups Storage
  312. description: The path to store SFTPGo Backups.
  313. schema:
  314. type: dict
  315. attrs:
  316. - variable: type
  317. label: Type
  318. description: |
  319. ixVolume: Is dataset created automatically by the system.</br>
  320. Host Path: Is a path that already exists on the system.
  321. schema:
  322. type: string
  323. required: true
  324. immutable: true
  325. default: "ixVolume"
  326. enum:
  327. - value: "hostPath"
  328. description: Host Path (Path that already exists on the system)
  329. - value: "ixVolume"
  330. description: ixVolume (Dataset created automatically by the system)
  331. - variable: datasetName
  332. label: Dataset Name
  333. schema:
  334. type: string
  335. show_if: [["type", "=", "ixVolume"]]
  336. required: true
  337. hidden: true
  338. immutable: true
  339. default: "backups"
  340. $ref:
  341. - "normalize/ixVolume"
  342. - variable: hostPath
  343. label: Host Path
  344. schema:
  345. type: hostpath
  346. show_if: [["type", "=", "hostPath"]]
  347. required: true
  348. - variable: additionalStorages
  349. label: Additional Storage
  350. description: Additional storage for SFTPGo.
  351. schema:
  352. type: list
  353. default: []
  354. items:
  355. - variable: storageEntry
  356. label: Storage Entry
  357. schema:
  358. type: dict
  359. attrs:
  360. - variable: type
  361. label: Type
  362. description: |
  363. ixVolume: Is dataset created automatically by the system.</br>
  364. Host Path: Is a path that already exists on the system.</br>
  365. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  366. schema:
  367. type: string
  368. required: true
  369. default: "ixVolume"
  370. immutable: true
  371. enum:
  372. - value: "hostPath"
  373. description: Host Path (Path that already exists on the system)
  374. - value: "ixVolume"
  375. description: ixVolume (Dataset created automatically by the system)
  376. - value: "smb-pv-pvc"
  377. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  378. - variable: mountPath
  379. label: Mount Path
  380. description: The path inside the container to mount the storage.
  381. schema:
  382. type: path
  383. required: true
  384. - variable: hostPath
  385. label: Host Path
  386. description: The host path to use for storage.
  387. schema:
  388. type: hostpath
  389. show_if: [["type", "=", "hostPath"]]
  390. required: true
  391. - variable: datasetName
  392. label: Dataset Name
  393. description: The name of the dataset to use for storage.
  394. schema:
  395. type: string
  396. show_if: [["type", "=", "ixVolume"]]
  397. required: true
  398. immutable: true
  399. default: "storage_entry"
  400. $ref:
  401. - "normalize/ixVolume"
  402. - variable: server
  403. label: Server
  404. description: The server for the SMB share.
  405. schema:
  406. type: string
  407. show_if: [["type", "=", "smb-pv-pvc"]]
  408. required: true
  409. - variable: share
  410. label: Share
  411. description: The share name for the SMB share.
  412. schema:
  413. type: string
  414. show_if: [["type", "=", "smb-pv-pvc"]]
  415. required: true
  416. - variable: domain
  417. label: Domain (Optional)
  418. description: The domain for the SMB share.
  419. schema:
  420. type: string
  421. show_if: [["type", "=", "smb-pv-pvc"]]
  422. - variable: username
  423. label: Username
  424. description: The username for the SMB share.
  425. schema:
  426. type: string
  427. show_if: [["type", "=", "smb-pv-pvc"]]
  428. required: true
  429. - variable: password
  430. label: Password
  431. description: The password for the SMB share.
  432. schema:
  433. type: string
  434. show_if: [["type", "=", "smb-pv-pvc"]]
  435. required: true
  436. private: true
  437. - variable: size
  438. label: Size (in Gi)
  439. description: The size of the volume quota.
  440. schema:
  441. type: int
  442. show_if: [["type", "=", "smb-pv-pvc"]]
  443. required: true
  444. min: 1
  445. default: 1
  446. - variable: resources
  447. group: Resources Configuration
  448. label: ""
  449. schema:
  450. type: dict
  451. attrs:
  452. - variable: limits
  453. label: Limits
  454. schema:
  455. type: dict
  456. attrs:
  457. - variable: cpu
  458. label: CPU
  459. description: CPU limit for SFTPGo.
  460. schema:
  461. type: string
  462. max_length: 6
  463. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  464. valid_chars_error: |
  465. Valid CPU limit formats are</br>
  466. - Plain Integer - eg. 1</br>
  467. - Float - eg. 0.5</br>
  468. - Milicpu - eg. 500m
  469. default: "4000m"
  470. required: true
  471. - variable: memory
  472. label: Memory
  473. description: Memory limit for SFTPGo.
  474. schema:
  475. type: string
  476. max_length: 12
  477. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  478. valid_chars_error: |
  479. Valid Memory limit formats are</br>
  480. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  481. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  482. - Plain Integer in bytes - eg. 1024</br>
  483. - Exponent - eg. 134e6
  484. default: "8Gi"
  485. required: true