questions.yaml 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659
  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: ixVolumeConfig
  256. label: ixVolume Configuration
  257. description: The configuration for the ixVolume dataset.
  258. schema:
  259. type: dict
  260. show_if: [["type", "=", "ixVolume"]]
  261. $ref:
  262. - "normalize/ixVolume"
  263. attrs:
  264. - variable: aclEnable
  265. label: Enable ACL
  266. description: Enable ACL for the dataset.
  267. schema:
  268. type: boolean
  269. default: false
  270. - variable: datasetName
  271. label: Dataset Name
  272. description: The name of the dataset to use for storage.
  273. schema:
  274. type: string
  275. required: true
  276. immutable: true
  277. hidden: true
  278. default: "config"
  279. - variable: aclEntries
  280. label: ACL Configuration
  281. schema:
  282. type: dict
  283. show_if: [["aclEnable", "=", true]]
  284. attrs: []
  285. - variable: hostPathConfig
  286. label: Host Path Configuration
  287. schema:
  288. type: dict
  289. show_if: [["type", "=", "hostPath"]]
  290. attrs:
  291. - variable: aclEnable
  292. label: Enable ACL
  293. description: Enable ACL for the dataset.
  294. schema:
  295. type: boolean
  296. default: false
  297. - variable: acl
  298. label: ACL Configuration
  299. schema:
  300. type: dict
  301. show_if: [["aclEnable", "=", true]]
  302. attrs: []
  303. $ref:
  304. - "normalize/acl"
  305. - variable: hostPath
  306. label: Host Path
  307. description: The host path to use for storage.
  308. schema:
  309. type: hostpath
  310. show_if: [["aclEnable", "=", false]]
  311. required: true
  312. - variable: data
  313. label: SFTPGo Data Storage
  314. description: The path to store SFTPGo Data.
  315. schema:
  316. type: dict
  317. attrs:
  318. - variable: type
  319. label: Type
  320. description: |
  321. ixVolume: Is dataset created automatically by the system.</br>
  322. Host Path: Is a path that already exists on the system.
  323. schema:
  324. type: string
  325. required: true
  326. immutable: true
  327. default: "ixVolume"
  328. enum:
  329. - value: "hostPath"
  330. description: Host Path (Path that already exists on the system)
  331. - value: "ixVolume"
  332. description: ixVolume (Dataset created automatically by the system)
  333. - variable: ixVolumeConfig
  334. label: ixVolume Configuration
  335. description: The configuration for the ixVolume dataset.
  336. schema:
  337. type: dict
  338. show_if: [["type", "=", "ixVolume"]]
  339. $ref:
  340. - "normalize/ixVolume"
  341. attrs:
  342. - variable: aclEnable
  343. label: Enable ACL
  344. description: Enable ACL for the dataset.
  345. schema:
  346. type: boolean
  347. default: false
  348. - variable: datasetName
  349. label: Dataset Name
  350. description: The name of the dataset to use for storage.
  351. schema:
  352. type: string
  353. required: true
  354. immutable: true
  355. hidden: true
  356. default: "data"
  357. - variable: aclEntries
  358. label: ACL Configuration
  359. schema:
  360. type: dict
  361. show_if: [["aclEnable", "=", true]]
  362. attrs: []
  363. - variable: hostPathConfig
  364. label: Host Path Configuration
  365. schema:
  366. type: dict
  367. show_if: [["type", "=", "hostPath"]]
  368. attrs:
  369. - variable: aclEnable
  370. label: Enable ACL
  371. description: Enable ACL for the dataset.
  372. schema:
  373. type: boolean
  374. default: false
  375. - variable: acl
  376. label: ACL Configuration
  377. schema:
  378. type: dict
  379. show_if: [["aclEnable", "=", true]]
  380. attrs: []
  381. $ref:
  382. - "normalize/acl"
  383. - variable: hostPath
  384. label: Host Path
  385. description: The host path to use for storage.
  386. schema:
  387. type: hostpath
  388. show_if: [["aclEnable", "=", false]]
  389. required: true
  390. - variable: backups
  391. label: SFTPGo Backups Storage
  392. description: The path to store SFTPGo Backups.
  393. schema:
  394. type: dict
  395. attrs:
  396. - variable: type
  397. label: Type
  398. description: |
  399. ixVolume: Is dataset created automatically by the system.</br>
  400. Host Path: Is a path that already exists on the system.
  401. schema:
  402. type: string
  403. required: true
  404. immutable: true
  405. default: "ixVolume"
  406. enum:
  407. - value: "hostPath"
  408. description: Host Path (Path that already exists on the system)
  409. - value: "ixVolume"
  410. description: ixVolume (Dataset created automatically by the system)
  411. - variable: ixVolumeConfig
  412. label: ixVolume Configuration
  413. description: The configuration for the ixVolume dataset.
  414. schema:
  415. type: dict
  416. show_if: [["type", "=", "ixVolume"]]
  417. $ref:
  418. - "normalize/ixVolume"
  419. attrs:
  420. - variable: aclEnable
  421. label: Enable ACL
  422. description: Enable ACL for the dataset.
  423. schema:
  424. type: boolean
  425. default: false
  426. - variable: datasetName
  427. label: Dataset Name
  428. description: The name of the dataset to use for storage.
  429. schema:
  430. type: string
  431. required: true
  432. immutable: true
  433. hidden: true
  434. default: "backups"
  435. - variable: aclEntries
  436. label: ACL Configuration
  437. schema:
  438. type: dict
  439. show_if: [["aclEnable", "=", true]]
  440. attrs: []
  441. - variable: hostPathConfig
  442. label: Host Path Configuration
  443. schema:
  444. type: dict
  445. show_if: [["type", "=", "hostPath"]]
  446. attrs:
  447. - variable: aclEnable
  448. label: Enable ACL
  449. description: Enable ACL for the dataset.
  450. schema:
  451. type: boolean
  452. default: false
  453. - variable: acl
  454. label: ACL Configuration
  455. schema:
  456. type: dict
  457. show_if: [["aclEnable", "=", true]]
  458. attrs: []
  459. $ref:
  460. - "normalize/acl"
  461. - variable: hostPath
  462. label: Host Path
  463. description: The host path to use for storage.
  464. schema:
  465. type: hostpath
  466. show_if: [["aclEnable", "=", false]]
  467. required: true
  468. - variable: additionalStorages
  469. label: Additional Storage
  470. description: Additional storage for SFTPGo.
  471. schema:
  472. type: list
  473. default: []
  474. items:
  475. - variable: storageEntry
  476. label: Storage Entry
  477. schema:
  478. type: dict
  479. attrs:
  480. - variable: type
  481. label: Type
  482. description: |
  483. ixVolume: Is dataset created automatically by the system.</br>
  484. Host Path: Is a path that already exists on the system.</br>
  485. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  486. schema:
  487. type: string
  488. required: true
  489. default: "ixVolume"
  490. immutable: true
  491. enum:
  492. - value: "hostPath"
  493. description: Host Path (Path that already exists on the system)
  494. - value: "ixVolume"
  495. description: ixVolume (Dataset created automatically by the system)
  496. - value: "smb-pv-pvc"
  497. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  498. - variable: readOnly
  499. label: Read Only
  500. description: Mount the volume as read only.
  501. schema:
  502. type: boolean
  503. default: false
  504. - variable: mountPath
  505. label: Mount Path
  506. description: The path inside the container to mount the storage.
  507. schema:
  508. type: path
  509. required: true
  510. - variable: hostPathConfig
  511. label: Host Path Configuration
  512. schema:
  513. type: dict
  514. show_if: [["type", "=", "hostPath"]]
  515. attrs:
  516. - variable: aclEnable
  517. label: Enable ACL
  518. description: Enable ACL for the dataset.
  519. schema:
  520. type: boolean
  521. default: false
  522. - variable: acl
  523. label: ACL Configuration
  524. schema:
  525. type: dict
  526. show_if: [["aclEnable", "=", true]]
  527. attrs: []
  528. $ref:
  529. - "normalize/acl"
  530. - variable: hostPath
  531. label: Host Path
  532. description: The host path to use for storage.
  533. schema:
  534. type: hostpath
  535. show_if: [["aclEnable", "=", false]]
  536. required: true
  537. - variable: ixVolumeConfig
  538. label: ixVolume Configuration
  539. description: The configuration for the ixVolume dataset.
  540. schema:
  541. type: dict
  542. show_if: [["type", "=", "ixVolume"]]
  543. $ref:
  544. - "normalize/ixVolume"
  545. attrs:
  546. - variable: aclEnable
  547. label: Enable ACL
  548. description: Enable ACL for the dataset.
  549. schema:
  550. type: boolean
  551. default: false
  552. - variable: datasetName
  553. label: Dataset Name
  554. description: The name of the dataset to use for storage.
  555. schema:
  556. type: string
  557. required: true
  558. immutable: true
  559. default: "storage_entry"
  560. - variable: aclEntries
  561. label: ACL Configuration
  562. schema:
  563. type: dict
  564. show_if: [["aclEnable", "=", true]]
  565. attrs: []
  566. - variable: smbConfig
  567. label: SMB Share Configuration
  568. description: The configuration for the SMB Share.
  569. schema:
  570. type: dict
  571. show_if: [["type", "=", "smb-pv-pvc"]]
  572. attrs:
  573. - variable: server
  574. label: Server
  575. description: The server for the SMB share.
  576. schema:
  577. type: string
  578. required: true
  579. - variable: share
  580. label: Share
  581. description: The share name for the SMB share.
  582. schema:
  583. type: string
  584. required: true
  585. - variable: domain
  586. label: Domain (Optional)
  587. description: The domain for the SMB share.
  588. schema:
  589. type: string
  590. - variable: username
  591. label: Username
  592. description: The username for the SMB share.
  593. schema:
  594. type: string
  595. required: true
  596. - variable: password
  597. label: Password
  598. description: The password for the SMB share.
  599. schema:
  600. type: string
  601. required: true
  602. private: true
  603. - variable: size
  604. label: Size (in Gi)
  605. description: The size of the volume quota.
  606. schema:
  607. type: int
  608. required: true
  609. min: 1
  610. default: 1
  611. - variable: resources
  612. group: Resources Configuration
  613. label: ""
  614. schema:
  615. type: dict
  616. attrs:
  617. - variable: limits
  618. label: Limits
  619. schema:
  620. type: dict
  621. attrs:
  622. - variable: cpu
  623. label: CPU
  624. description: CPU limit for SFTPGo.
  625. schema:
  626. type: string
  627. max_length: 6
  628. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  629. valid_chars_error: |
  630. Valid CPU limit formats are</br>
  631. - Plain Integer - eg. 1</br>
  632. - Float - eg. 0.5</br>
  633. - Milicpu - eg. 500m
  634. default: "4000m"
  635. required: true
  636. - variable: memory
  637. label: Memory
  638. description: Memory limit for SFTPGo.
  639. schema:
  640. type: string
  641. max_length: 12
  642. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  643. valid_chars_error: |
  644. Valid Memory limit formats are</br>
  645. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  646. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  647. - Plain Integer in bytes - eg. 1024</br>
  648. - Exponent - eg. 134e6
  649. default: "8Gi"
  650. required: true