app_versions.json 112 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497
  1. {
  2. "1.2.10": {
  3. "healthy": true,
  4. "supported": false,
  5. "healthy_error": null,
  6. "location": "/__w/charts/charts/community/unifi-protect-backup/1.2.10",
  7. "last_update": "2025-03-06 08:26:26",
  8. "required_features": [
  9. "definitions/timezone",
  10. "normalize/ixVolume",
  11. "normalize/acl"
  12. ],
  13. "human_version": "0.12.0_1.2.10",
  14. "version": "1.2.10",
  15. "chart_metadata": {
  16. "name": "unifi-protect-backup",
  17. "description": "Unifi Protect Backup is a python based tool for backing up UniFi Protect event clips as they occur.",
  18. "annotations": {
  19. "title": "Unifi Protect Backup"
  20. },
  21. "type": "application",
  22. "version": "1.2.10",
  23. "apiVersion": "v2",
  24. "appVersion": "0.12.0",
  25. "kubeVersion": ">=1.16.0-0",
  26. "maintainers": [
  27. {
  28. "name": "truenas",
  29. "url": "https://www.truenas.com/",
  30. "email": "dev@ixsystems.com"
  31. }
  32. ],
  33. "dependencies": [
  34. {
  35. "name": "common",
  36. "repository": "file://../../../common",
  37. "version": "1.2.9"
  38. }
  39. ],
  40. "home": "https://github.com/ep1cman/unifi-protect-backup",
  41. "icon": "https://media.sys.truenas.net/apps/unifi-protect-backup/icons/icon.svg",
  42. "sources": [
  43. "https://github.com/ep1cman/unifi-protect-backup",
  44. "https://github.com/truenas/charts/tree/master/community/unifi-protect-backup",
  45. "https://github.com/ep1cman/unifi-protect-backup/pkgs/container/unifi-protect-backup/"
  46. ],
  47. "keywords": [
  48. "backup",
  49. "unifi-protect"
  50. ]
  51. },
  52. "app_metadata": {
  53. "runAsContext": [
  54. {
  55. "userName": "root",
  56. "groupName": "root",
  57. "gid": 0,
  58. "uid": 0,
  59. "description": "Unifi Protect Backup run as root user"
  60. }
  61. ],
  62. "capabilities": [
  63. {
  64. "name": "CHOWN",
  65. "description": "Unifi Protect Backup is able to chown files."
  66. },
  67. {
  68. "name": "FOWNER",
  69. "description": "Unifi Protect Backup is able bypass permission checks for it's sub-processes."
  70. },
  71. {
  72. "name": "SETGID",
  73. "description": "Unifi Protect Backup is able to set group ID for it's sub-processes."
  74. },
  75. {
  76. "name": "SETUID",
  77. "description": "Unifi Protect Backup is able to set user ID for it's sub-processes."
  78. }
  79. ],
  80. "hostMounts": []
  81. },
  82. "schema": {
  83. "groups": [
  84. {
  85. "name": "Unifi Protect Backup Configuration",
  86. "description": "Configure Unifi Protect Backup"
  87. },
  88. {
  89. "name": "User and Group Configuration",
  90. "description": "Configure User and Group for Unifi Protect Backup"
  91. },
  92. {
  93. "name": "Storage Configuration",
  94. "description": "Configure Storage for Unifi Protect Backup"
  95. },
  96. {
  97. "name": "Resources Configuration",
  98. "description": "Configure Resources for Unifi Protect Backup"
  99. }
  100. ],
  101. "questions": [
  102. {
  103. "variable": "TZ",
  104. "group": "Unifi Protect Backup Configuration",
  105. "label": "Timezone",
  106. "schema": {
  107. "type": "string",
  108. "default": "America/Los_Angeles",
  109. "required": true,
  110. "$ref": [
  111. "definitions/timezone"
  112. ],
  113. "enum": [
  114. {
  115. "value": "Asia/Damascus",
  116. "description": "'Asia/Damascus' timezone"
  117. },
  118. {
  119. "value": "Asia/Saigon",
  120. "description": "'Asia/Saigon' timezone"
  121. }
  122. ]
  123. }
  124. },
  125. {
  126. "variable": "upbConfig",
  127. "label": "",
  128. "group": "Unifi Protect Backup Configuration",
  129. "schema": {
  130. "type": "dict",
  131. "attrs": [
  132. {
  133. "variable": "unifiProtectUsername",
  134. "label": "Unifi Protect Username",
  135. "description": "Username to login to Unifi Protect instance",
  136. "schema": {
  137. "type": "string",
  138. "required": true
  139. }
  140. },
  141. {
  142. "variable": "unifiProtectPassword",
  143. "label": "Unifi Protect Password",
  144. "description": "Password for Unifi Protect user",
  145. "schema": {
  146. "type": "string",
  147. "required": true,
  148. "private": true
  149. }
  150. },
  151. {
  152. "variable": "unifiProtectAddress",
  153. "label": "Unifi Protect Address",
  154. "description": "Address of Unifi Protect instance",
  155. "schema": {
  156. "type": "string",
  157. "required": true
  158. }
  159. },
  160. {
  161. "variable": "unifiProtectPort",
  162. "label": "Unifi Protect Port",
  163. "description": "Port of Unifi Protect instance",
  164. "schema": {
  165. "type": "int",
  166. "min": 1,
  167. "max": 65535,
  168. "required": true,
  169. "default": 443
  170. }
  171. },
  172. {
  173. "variable": "unifiProtectVerifySsl",
  174. "label": "Unifi Protect Verify SSL",
  175. "description": "Verify SSL certificate of Unifi Protect instance",
  176. "schema": {
  177. "type": "boolean",
  178. "default": true
  179. }
  180. },
  181. {
  182. "variable": "skipMissing",
  183. "label": "Skip Missing",
  184. "description": "If set, events which are 'missing' at the start will be ignored.",
  185. "schema": {
  186. "type": "boolean",
  187. "default": false
  188. }
  189. },
  190. {
  191. "variable": "ignoreCameras",
  192. "label": "Ignore Cameras",
  193. "description": "IDs of cameras for which events should not be backed up. One per line.",
  194. "schema": {
  195. "type": "list",
  196. "default": [],
  197. "items": [
  198. {
  199. "variable": "id",
  200. "label": "Camera ID",
  201. "schema": {
  202. "type": "string",
  203. "required": true
  204. }
  205. }
  206. ]
  207. }
  208. },
  209. {
  210. "variable": "detectionTypes",
  211. "label": "Detection Types",
  212. "description": "Types of detections to back up. One per line.",
  213. "schema": {
  214. "type": "list",
  215. "default": [
  216. "motion",
  217. "person",
  218. "vehicle",
  219. "ring"
  220. ],
  221. "items": [
  222. {
  223. "variable": "type",
  224. "label": "Detection Type",
  225. "schema": {
  226. "type": "string",
  227. "required": true,
  228. "enum": [
  229. {
  230. "value": "motion",
  231. "description": "Motion"
  232. },
  233. {
  234. "value": "person",
  235. "description": "Person"
  236. },
  237. {
  238. "value": "vehicle",
  239. "description": "Vehicle"
  240. },
  241. {
  242. "value": "ring",
  243. "description": "Ring"
  244. }
  245. ]
  246. }
  247. }
  248. ]
  249. }
  250. },
  251. {
  252. "variable": "rcloneDestination",
  253. "label": "Rclone Destination",
  254. "description": "Rclone destination path in the format {rclone-remote}:{path-on-remote} </br.>\nE.g. `gdrive:/backups/unifi_protect`\n",
  255. "schema": {
  256. "type": "string",
  257. "required": true
  258. }
  259. },
  260. {
  261. "variable": "rcloneArgs",
  262. "label": "Rclone Arguments",
  263. "description": "Optional extra arguments to pass to rclone rcat directly. One per line</br>\nCommon usage for this would be to set a bandwidth limit</br>\nE.g. --bwlimit 8M\n",
  264. "schema": {
  265. "type": "list",
  266. "default": [],
  267. "items": [
  268. {
  269. "variable": "arg",
  270. "label": "Argument",
  271. "schema": {
  272. "type": "string",
  273. "required": true
  274. }
  275. }
  276. ]
  277. }
  278. },
  279. {
  280. "variable": "rclonePurgeArgs",
  281. "label": "Rclone Purge Arguments",
  282. "description": "Optional extra arguments to pass to rclone delete. One per line</br>\nCommon usage for this would be to execute a permanent delete\ninstead of using the recycle bin on a destination.</br>\nGoogle Drive example: --drive-use-trash=false\n",
  283. "schema": {
  284. "type": "list",
  285. "default": [],
  286. "items": [
  287. {
  288. "variable": "arg",
  289. "label": "Argument",
  290. "schema": {
  291. "type": "string",
  292. "required": true
  293. }
  294. }
  295. ]
  296. }
  297. },
  298. {
  299. "variable": "additionalEnvs",
  300. "label": "Additional Environment Variables",
  301. "description": "Configure additional environment variables for Unifi Protect Backup.",
  302. "schema": {
  303. "type": "list",
  304. "default": [],
  305. "items": [
  306. {
  307. "variable": "env",
  308. "label": "Environment Variable",
  309. "schema": {
  310. "type": "dict",
  311. "attrs": [
  312. {
  313. "variable": "name",
  314. "label": "Name",
  315. "schema": {
  316. "type": "string",
  317. "required": true
  318. }
  319. },
  320. {
  321. "variable": "value",
  322. "label": "Value",
  323. "schema": {
  324. "type": "string",
  325. "required": true
  326. }
  327. }
  328. ]
  329. }
  330. }
  331. ]
  332. }
  333. }
  334. ]
  335. }
  336. },
  337. {
  338. "variable": "upbID",
  339. "label": "",
  340. "group": "User and Group Configuration",
  341. "schema": {
  342. "type": "dict",
  343. "attrs": [
  344. {
  345. "variable": "user",
  346. "label": "User ID",
  347. "description": "The user id that Unifi Protect Backup files will be owned by.",
  348. "schema": {
  349. "type": "int",
  350. "min": 568,
  351. "default": 568,
  352. "required": true
  353. }
  354. },
  355. {
  356. "variable": "group",
  357. "label": "Group ID",
  358. "description": "The group id that Unifi Protect Backup files will be owned by.",
  359. "schema": {
  360. "type": "int",
  361. "min": 568,
  362. "default": 568,
  363. "required": true
  364. }
  365. }
  366. ]
  367. }
  368. },
  369. {
  370. "variable": "upbStorage",
  371. "label": "",
  372. "group": "Storage Configuration",
  373. "schema": {
  374. "type": "dict",
  375. "attrs": [
  376. {
  377. "variable": "config",
  378. "label": "Unifi Protect Backup Config Storage",
  379. "description": "The path to store Unifi Protect Backup Configuration.",
  380. "schema": {
  381. "type": "dict",
  382. "attrs": [
  383. {
  384. "variable": "type",
  385. "label": "Type",
  386. "description": "ixVolume: Is dataset created automatically by the system.</br>\nHost Path: Is a path that already exists on the system.\n",
  387. "schema": {
  388. "type": "string",
  389. "required": true,
  390. "immutable": true,
  391. "default": "ixVolume",
  392. "enum": [
  393. {
  394. "value": "hostPath",
  395. "description": "Host Path (Path that already exists on the system)"
  396. },
  397. {
  398. "value": "ixVolume",
  399. "description": "ixVolume (Dataset created automatically by the system)"
  400. }
  401. ]
  402. }
  403. },
  404. {
  405. "variable": "ixVolumeConfig",
  406. "label": "ixVolume Configuration",
  407. "description": "The configuration for the ixVolume dataset.",
  408. "schema": {
  409. "type": "dict",
  410. "show_if": [
  411. [
  412. "type",
  413. "=",
  414. "ixVolume"
  415. ]
  416. ],
  417. "$ref": [
  418. "normalize/ixVolume"
  419. ],
  420. "attrs": [
  421. {
  422. "variable": "aclEnable",
  423. "label": "Enable ACL",
  424. "description": "Enable ACL for the dataset.",
  425. "schema": {
  426. "type": "boolean",
  427. "default": false
  428. }
  429. },
  430. {
  431. "variable": "datasetName",
  432. "label": "Dataset Name",
  433. "description": "The name of the dataset to use for storage.",
  434. "schema": {
  435. "type": "string",
  436. "required": true,
  437. "immutable": true,
  438. "hidden": true,
  439. "default": "config"
  440. }
  441. },
  442. {
  443. "variable": "aclEntries",
  444. "label": "ACL Configuration",
  445. "schema": {
  446. "type": "dict",
  447. "show_if": [
  448. [
  449. "aclEnable",
  450. "=",
  451. true
  452. ]
  453. ],
  454. "attrs": [
  455. {
  456. "variable": "path",
  457. "label": "Path",
  458. "description": "Path to perform ACL",
  459. "schema": {
  460. "type": "string",
  461. "hidden": true
  462. }
  463. },
  464. {
  465. "variable": "entries",
  466. "label": "ACL Entries",
  467. "description": "ACL Entries",
  468. "schema": {
  469. "type": "list",
  470. "items": [
  471. {
  472. "variable": "aclEntry",
  473. "label": "ACL Entry",
  474. "schema": {
  475. "type": "dict",
  476. "attrs": [
  477. {
  478. "variable": "id_type",
  479. "label": "ID Type",
  480. "schema": {
  481. "type": "string",
  482. "enum": [
  483. {
  484. "value": "USER",
  485. "description": "Entry is for a USER"
  486. },
  487. {
  488. "value": "GROUP",
  489. "description": "Entry is for a GROUP"
  490. }
  491. ],
  492. "default": "USER"
  493. }
  494. },
  495. {
  496. "variable": "id",
  497. "label": "ID",
  498. "description": "Make sure to check the ID value is correct and aligns with RunAs user context of the application",
  499. "schema": {
  500. "type": "int",
  501. "required": true,
  502. "min": 0
  503. }
  504. },
  505. {
  506. "variable": "access",
  507. "label": "Access",
  508. "schema": {
  509. "type": "string",
  510. "enum": [
  511. {
  512. "value": "READ",
  513. "description": "Read Access"
  514. },
  515. {
  516. "value": "MODIFY",
  517. "description": "Modify Access"
  518. },
  519. {
  520. "value": "FULL_CONTROL",
  521. "description": "FULL_CONTROL Access"
  522. }
  523. ]
  524. }
  525. }
  526. ]
  527. }
  528. }
  529. ]
  530. }
  531. }
  532. ]
  533. }
  534. }
  535. ]
  536. }
  537. },
  538. {
  539. "variable": "hostPathConfig",
  540. "label": "Host Path Configuration",
  541. "schema": {
  542. "type": "dict",
  543. "show_if": [
  544. [
  545. "type",
  546. "=",
  547. "hostPath"
  548. ]
  549. ],
  550. "attrs": [
  551. {
  552. "variable": "aclEnable",
  553. "label": "Enable ACL",
  554. "description": "Enable ACL for the dataset.",
  555. "schema": {
  556. "type": "boolean",
  557. "default": false
  558. }
  559. },
  560. {
  561. "variable": "acl",
  562. "label": "ACL Configuration",
  563. "schema": {
  564. "type": "dict",
  565. "show_if": [
  566. [
  567. "aclEnable",
  568. "=",
  569. true
  570. ]
  571. ],
  572. "attrs": [
  573. {
  574. "variable": "path",
  575. "label": "Host Path",
  576. "description": "Host Path to perform ACL",
  577. "schema": {
  578. "type": "hostpath",
  579. "required": true,
  580. "empty": false
  581. }
  582. },
  583. {
  584. "variable": "entries",
  585. "label": "ACL Entries",
  586. "description": "ACL Entries",
  587. "schema": {
  588. "type": "list",
  589. "items": [
  590. {
  591. "variable": "aclEntry",
  592. "label": "ACL Entry",
  593. "schema": {
  594. "type": "dict",
  595. "attrs": [
  596. {
  597. "variable": "id_type",
  598. "label": "ID Type",
  599. "schema": {
  600. "type": "string",
  601. "enum": [
  602. {
  603. "value": "USER",
  604. "description": "Entry is for a USER"
  605. },
  606. {
  607. "value": "GROUP",
  608. "description": "Entry is for a GROUP"
  609. }
  610. ],
  611. "default": "USER"
  612. }
  613. },
  614. {
  615. "variable": "id",
  616. "label": "ID",
  617. "description": "Make sure to check the ID value is correct and aligns with RunAs user context of the application",
  618. "schema": {
  619. "type": "int",
  620. "required": true,
  621. "min": 0
  622. }
  623. },
  624. {
  625. "variable": "access",
  626. "label": "Access",
  627. "schema": {
  628. "type": "string",
  629. "enum": [
  630. {
  631. "value": "READ",
  632. "description": "Read Access"
  633. },
  634. {
  635. "value": "MODIFY",
  636. "description": "Modify Access"
  637. },
  638. {
  639. "value": "FULL_CONTROL",
  640. "description": "FULL_CONTROL Access"
  641. }
  642. ]
  643. }
  644. }
  645. ]
  646. }
  647. }
  648. ]
  649. }
  650. },
  651. {
  652. "variable": "options",
  653. "label": "ACL Options",
  654. "schema": {
  655. "type": "dict",
  656. "attrs": [
  657. {
  658. "variable": "force",
  659. "label": "Force Flag",
  660. "description": "Enabling `Force` applies ACL even if the path has existing data",
  661. "schema": {
  662. "type": "boolean",
  663. "default": false
  664. }
  665. }
  666. ]
  667. }
  668. }
  669. ],
  670. "$ref": [
  671. "normalize/acl"
  672. ]
  673. }
  674. },
  675. {
  676. "variable": "hostPath",
  677. "label": "Host Path",
  678. "description": "The host path to use for storage.",
  679. "schema": {
  680. "type": "hostpath",
  681. "show_if": [
  682. [
  683. "aclEnable",
  684. "=",
  685. false
  686. ]
  687. ],
  688. "required": true
  689. }
  690. }
  691. ]
  692. }
  693. }
  694. ]
  695. }
  696. },
  697. {
  698. "variable": "data",
  699. "label": "Unifi Protect Backup Data Storage",
  700. "description": "The path to store Unifi Protect Backup Data.",
  701. "schema": {
  702. "type": "dict",
  703. "attrs": [
  704. {
  705. "variable": "type",
  706. "label": "Type",
  707. "description": "ixVolume: Is dataset created automatically by the system.</br>\nHost Path: Is a path that already exists on the system.\n",
  708. "schema": {
  709. "type": "string",
  710. "required": true,
  711. "immutable": true,
  712. "default": "ixVolume",
  713. "enum": [
  714. {
  715. "value": "hostPath",
  716. "description": "Host Path (Path that already exists on the system)"
  717. },
  718. {
  719. "value": "ixVolume",
  720. "description": "ixVolume (Dataset created automatically by the system)"
  721. }
  722. ]
  723. }
  724. },
  725. {
  726. "variable": "ixVolumeConfig",
  727. "label": "ixVolume Configuration",
  728. "description": "The configuration for the ixVolume dataset.",
  729. "schema": {
  730. "type": "dict",
  731. "show_if": [
  732. [
  733. "type",
  734. "=",
  735. "ixVolume"
  736. ]
  737. ],
  738. "$ref": [
  739. "normalize/ixVolume"
  740. ],
  741. "attrs": [
  742. {
  743. "variable": "aclEnable",
  744. "label": "Enable ACL",
  745. "description": "Enable ACL for the dataset.",
  746. "schema": {
  747. "type": "boolean",
  748. "default": false
  749. }
  750. },
  751. {
  752. "variable": "datasetName",
  753. "label": "Dataset Name",
  754. "description": "The name of the dataset to use for storage.",
  755. "schema": {
  756. "type": "string",
  757. "required": true,
  758. "immutable": true,
  759. "hidden": true,
  760. "default": "data"
  761. }
  762. },
  763. {
  764. "variable": "aclEntries",
  765. "label": "ACL Configuration",
  766. "schema": {
  767. "type": "dict",
  768. "show_if": [
  769. [
  770. "aclEnable",
  771. "=",
  772. true
  773. ]
  774. ],
  775. "attrs": [
  776. {
  777. "variable": "path",
  778. "label": "Path",
  779. "description": "Path to perform ACL",
  780. "schema": {
  781. "type": "string",
  782. "hidden": true
  783. }
  784. },
  785. {
  786. "variable": "entries",
  787. "label": "ACL Entries",
  788. "description": "ACL Entries",
  789. "schema": {
  790. "type": "list",
  791. "items": [
  792. {
  793. "variable": "aclEntry",
  794. "label": "ACL Entry",
  795. "schema": {
  796. "type": "dict",
  797. "attrs": [
  798. {
  799. "variable": "id_type",
  800. "label": "ID Type",
  801. "schema": {
  802. "type": "string",
  803. "enum": [
  804. {
  805. "value": "USER",
  806. "description": "Entry is for a USER"
  807. },
  808. {
  809. "value": "GROUP",
  810. "description": "Entry is for a GROUP"
  811. }
  812. ],
  813. "default": "USER"
  814. }
  815. },
  816. {
  817. "variable": "id",
  818. "label": "ID",
  819. "description": "Make sure to check the ID value is correct and aligns with RunAs user context of the application",
  820. "schema": {
  821. "type": "int",
  822. "required": true,
  823. "min": 0
  824. }
  825. },
  826. {
  827. "variable": "access",
  828. "label": "Access",
  829. "schema": {
  830. "type": "string",
  831. "enum": [
  832. {
  833. "value": "READ",
  834. "description": "Read Access"
  835. },
  836. {
  837. "value": "MODIFY",
  838. "description": "Modify Access"
  839. },
  840. {
  841. "value": "FULL_CONTROL",
  842. "description": "FULL_CONTROL Access"
  843. }
  844. ]
  845. }
  846. }
  847. ]
  848. }
  849. }
  850. ]
  851. }
  852. }
  853. ]
  854. }
  855. }
  856. ]
  857. }
  858. },
  859. {
  860. "variable": "hostPathConfig",
  861. "label": "Host Path Configuration",
  862. "schema": {
  863. "type": "dict",
  864. "show_if": [
  865. [
  866. "type",
  867. "=",
  868. "hostPath"
  869. ]
  870. ],
  871. "attrs": [
  872. {
  873. "variable": "aclEnable",
  874. "label": "Enable ACL",
  875. "description": "Enable ACL for the dataset.",
  876. "schema": {
  877. "type": "boolean",
  878. "default": false
  879. }
  880. },
  881. {
  882. "variable": "acl",
  883. "label": "ACL Configuration",
  884. "schema": {
  885. "type": "dict",
  886. "show_if": [
  887. [
  888. "aclEnable",
  889. "=",
  890. true
  891. ]
  892. ],
  893. "attrs": [
  894. {
  895. "variable": "path",
  896. "label": "Host Path",
  897. "description": "Host Path to perform ACL",
  898. "schema": {
  899. "type": "hostpath",
  900. "required": true,
  901. "empty": false
  902. }
  903. },
  904. {
  905. "variable": "entries",
  906. "label": "ACL Entries",
  907. "description": "ACL Entries",
  908. "schema": {
  909. "type": "list",
  910. "items": [
  911. {
  912. "variable": "aclEntry",
  913. "label": "ACL Entry",
  914. "schema": {
  915. "type": "dict",
  916. "attrs": [
  917. {
  918. "variable": "id_type",
  919. "label": "ID Type",
  920. "schema": {
  921. "type": "string",
  922. "enum": [
  923. {
  924. "value": "USER",
  925. "description": "Entry is for a USER"
  926. },
  927. {
  928. "value": "GROUP",
  929. "description": "Entry is for a GROUP"
  930. }
  931. ],
  932. "default": "USER"
  933. }
  934. },
  935. {
  936. "variable": "id",
  937. "label": "ID",
  938. "description": "Make sure to check the ID value is correct and aligns with RunAs user context of the application",
  939. "schema": {
  940. "type": "int",
  941. "required": true,
  942. "min": 0
  943. }
  944. },
  945. {
  946. "variable": "access",
  947. "label": "Access",
  948. "schema": {
  949. "type": "string",
  950. "enum": [
  951. {
  952. "value": "READ",
  953. "description": "Read Access"
  954. },
  955. {
  956. "value": "MODIFY",
  957. "description": "Modify Access"
  958. },
  959. {
  960. "value": "FULL_CONTROL",
  961. "description": "FULL_CONTROL Access"
  962. }
  963. ]
  964. }
  965. }
  966. ]
  967. }
  968. }
  969. ]
  970. }
  971. },
  972. {
  973. "variable": "options",
  974. "label": "ACL Options",
  975. "schema": {
  976. "type": "dict",
  977. "attrs": [
  978. {
  979. "variable": "force",
  980. "label": "Force Flag",
  981. "description": "Enabling `Force` applies ACL even if the path has existing data",
  982. "schema": {
  983. "type": "boolean",
  984. "default": false
  985. }
  986. }
  987. ]
  988. }
  989. }
  990. ],
  991. "$ref": [
  992. "normalize/acl"
  993. ]
  994. }
  995. },
  996. {
  997. "variable": "hostPath",
  998. "label": "Host Path",
  999. "description": "The host path to use for storage.",
  1000. "schema": {
  1001. "type": "hostpath",
  1002. "show_if": [
  1003. [
  1004. "aclEnable",
  1005. "=",
  1006. false
  1007. ]
  1008. ],
  1009. "required": true
  1010. }
  1011. }
  1012. ]
  1013. }
  1014. }
  1015. ]
  1016. }
  1017. },
  1018. {
  1019. "variable": "additionalStorages",
  1020. "label": "Additional Storage",
  1021. "description": "Additional storage for Unifi Protect Backup.",
  1022. "schema": {
  1023. "type": "list",
  1024. "default": [],
  1025. "items": [
  1026. {
  1027. "variable": "storageEntry",
  1028. "label": "Storage Entry",
  1029. "schema": {
  1030. "type": "dict",
  1031. "attrs": [
  1032. {
  1033. "variable": "type",
  1034. "label": "Type",
  1035. "description": "ixVolume: Is dataset created automatically by the system.</br>\nHost Path: Is a path that already exists on the system.</br>\nSMB Share: Is a SMB share that is mounted to a persistent volume claim.\n",
  1036. "schema": {
  1037. "type": "string",
  1038. "required": true,
  1039. "default": "ixVolume",
  1040. "immutable": true,
  1041. "enum": [
  1042. {
  1043. "value": "hostPath",
  1044. "description": "Host Path (Path that already exists on the system)"
  1045. },
  1046. {
  1047. "value": "ixVolume",
  1048. "description": "ixVolume (Dataset created automatically by the system)"
  1049. },
  1050. {
  1051. "value": "smb-pv-pvc",
  1052. "description": "SMB Share (Mounts a persistent volume claim to a SMB share)"
  1053. }
  1054. ]
  1055. }
  1056. },
  1057. {
  1058. "variable": "readOnly",
  1059. "label": "Read Only",
  1060. "description": "Mount the volume as read only.",
  1061. "schema": {
  1062. "type": "boolean",
  1063. "default": false
  1064. }
  1065. },
  1066. {
  1067. "variable": "mountPath",
  1068. "label": "Mount Path",
  1069. "description": "The path inside the container to mount the storage.",
  1070. "schema": {
  1071. "type": "path",
  1072. "required": true
  1073. }
  1074. },
  1075. {
  1076. "variable": "hostPathConfig",
  1077. "label": "Host Path Configuration",
  1078. "schema": {
  1079. "type": "dict",
  1080. "show_if": [
  1081. [
  1082. "type",
  1083. "=",
  1084. "hostPath"
  1085. ]
  1086. ],
  1087. "attrs": [
  1088. {
  1089. "variable": "aclEnable",
  1090. "label": "Enable ACL",
  1091. "description": "Enable ACL for the dataset.",
  1092. "schema": {
  1093. "type": "boolean",
  1094. "default": false
  1095. }
  1096. },
  1097. {
  1098. "variable": "acl",
  1099. "label": "ACL Configuration",
  1100. "schema": {
  1101. "type": "dict",
  1102. "show_if": [
  1103. [
  1104. "aclEnable",
  1105. "=",
  1106. true
  1107. ]
  1108. ],
  1109. "attrs": [
  1110. {
  1111. "variable": "path",
  1112. "label": "Host Path",
  1113. "description": "Host Path to perform ACL",
  1114. "schema": {
  1115. "type": "hostpath",
  1116. "required": true,
  1117. "empty": false
  1118. }
  1119. },
  1120. {
  1121. "variable": "entries",
  1122. "label": "ACL Entries",
  1123. "description": "ACL Entries",
  1124. "schema": {
  1125. "type": "list",
  1126. "items": [
  1127. {
  1128. "variable": "aclEntry",
  1129. "label": "ACL Entry",
  1130. "schema": {
  1131. "type": "dict",
  1132. "attrs": [
  1133. {
  1134. "variable": "id_type",
  1135. "label": "ID Type",
  1136. "schema": {
  1137. "type": "string",
  1138. "enum": [
  1139. {
  1140. "value": "USER",
  1141. "description": "Entry is for a USER"
  1142. },
  1143. {
  1144. "value": "GROUP",
  1145. "description": "Entry is for a GROUP"
  1146. }
  1147. ],
  1148. "default": "USER"
  1149. }
  1150. },
  1151. {
  1152. "variable": "id",
  1153. "label": "ID",
  1154. "description": "Make sure to check the ID value is correct and aligns with RunAs user context of the application",
  1155. "schema": {
  1156. "type": "int",
  1157. "required": true,
  1158. "min": 0
  1159. }
  1160. },
  1161. {
  1162. "variable": "access",
  1163. "label": "Access",
  1164. "schema": {
  1165. "type": "string",
  1166. "enum": [
  1167. {
  1168. "value": "READ",
  1169. "description": "Read Access"
  1170. },
  1171. {
  1172. "value": "MODIFY",
  1173. "description": "Modify Access"
  1174. },
  1175. {
  1176. "value": "FULL_CONTROL",
  1177. "description": "FULL_CONTROL Access"
  1178. }
  1179. ]
  1180. }
  1181. }
  1182. ]
  1183. }
  1184. }
  1185. ]
  1186. }
  1187. },
  1188. {
  1189. "variable": "options",
  1190. "label": "ACL Options",
  1191. "schema": {
  1192. "type": "dict",
  1193. "attrs": [
  1194. {
  1195. "variable": "force",
  1196. "label": "Force Flag",
  1197. "description": "Enabling `Force` applies ACL even if the path has existing data",
  1198. "schema": {
  1199. "type": "boolean",
  1200. "default": false
  1201. }
  1202. }
  1203. ]
  1204. }
  1205. }
  1206. ],
  1207. "$ref": [
  1208. "normalize/acl"
  1209. ]
  1210. }
  1211. },
  1212. {
  1213. "variable": "hostPath",
  1214. "label": "Host Path",
  1215. "description": "The host path to use for storage.",
  1216. "schema": {
  1217. "type": "hostpath",
  1218. "show_if": [
  1219. [
  1220. "aclEnable",
  1221. "=",
  1222. false
  1223. ]
  1224. ],
  1225. "required": true
  1226. }
  1227. }
  1228. ]
  1229. }
  1230. },
  1231. {
  1232. "variable": "ixVolumeConfig",
  1233. "label": "ixVolume Configuration",
  1234. "description": "The configuration for the ixVolume dataset.",
  1235. "schema": {
  1236. "type": "dict",
  1237. "show_if": [
  1238. [
  1239. "type",
  1240. "=",
  1241. "ixVolume"
  1242. ]
  1243. ],
  1244. "$ref": [
  1245. "normalize/ixVolume"
  1246. ],
  1247. "attrs": [
  1248. {
  1249. "variable": "aclEnable",
  1250. "label": "Enable ACL",
  1251. "description": "Enable ACL for the dataset.",
  1252. "schema": {
  1253. "type": "boolean",
  1254. "default": false
  1255. }
  1256. },
  1257. {
  1258. "variable": "datasetName",
  1259. "label": "Dataset Name",
  1260. "description": "The name of the dataset to use for storage.",
  1261. "schema": {
  1262. "type": "string",
  1263. "required": true,
  1264. "immutable": true,
  1265. "default": "storage_entry"
  1266. }
  1267. },
  1268. {
  1269. "variable": "aclEntries",
  1270. "label": "ACL Configuration",
  1271. "schema": {
  1272. "type": "dict",
  1273. "show_if": [
  1274. [
  1275. "aclEnable",
  1276. "=",
  1277. true
  1278. ]
  1279. ],
  1280. "attrs": [
  1281. {
  1282. "variable": "path",
  1283. "label": "Path",
  1284. "description": "Path to perform ACL",
  1285. "schema": {
  1286. "type": "string",
  1287. "hidden": true
  1288. }
  1289. },
  1290. {
  1291. "variable": "entries",
  1292. "label": "ACL Entries",
  1293. "description": "ACL Entries",
  1294. "schema": {
  1295. "type": "list",
  1296. "items": [
  1297. {
  1298. "variable": "aclEntry",
  1299. "label": "ACL Entry",
  1300. "schema": {
  1301. "type": "dict",
  1302. "attrs": [
  1303. {
  1304. "variable": "id_type",
  1305. "label": "ID Type",
  1306. "schema": {
  1307. "type": "string",
  1308. "enum": [
  1309. {
  1310. "value": "USER",
  1311. "description": "Entry is for a USER"
  1312. },
  1313. {
  1314. "value": "GROUP",
  1315. "description": "Entry is for a GROUP"
  1316. }
  1317. ],
  1318. "default": "USER"
  1319. }
  1320. },
  1321. {
  1322. "variable": "id",
  1323. "label": "ID",
  1324. "description": "Make sure to check the ID value is correct and aligns with RunAs user context of the application",
  1325. "schema": {
  1326. "type": "int",
  1327. "required": true,
  1328. "min": 0
  1329. }
  1330. },
  1331. {
  1332. "variable": "access",
  1333. "label": "Access",
  1334. "schema": {
  1335. "type": "string",
  1336. "enum": [
  1337. {
  1338. "value": "READ",
  1339. "description": "Read Access"
  1340. },
  1341. {
  1342. "value": "MODIFY",
  1343. "description": "Modify Access"
  1344. },
  1345. {
  1346. "value": "FULL_CONTROL",
  1347. "description": "FULL_CONTROL Access"
  1348. }
  1349. ]
  1350. }
  1351. }
  1352. ]
  1353. }
  1354. }
  1355. ]
  1356. }
  1357. }
  1358. ]
  1359. }
  1360. }
  1361. ]
  1362. }
  1363. },
  1364. {
  1365. "variable": "smbConfig",
  1366. "label": "SMB Share Configuration",
  1367. "description": "The configuration for the SMB Share.",
  1368. "schema": {
  1369. "type": "dict",
  1370. "show_if": [
  1371. [
  1372. "type",
  1373. "=",
  1374. "smb-pv-pvc"
  1375. ]
  1376. ],
  1377. "attrs": [
  1378. {
  1379. "variable": "server",
  1380. "label": "Server",
  1381. "description": "The server for the SMB share.",
  1382. "schema": {
  1383. "type": "string",
  1384. "required": true
  1385. }
  1386. },
  1387. {
  1388. "variable": "share",
  1389. "label": "Share",
  1390. "description": "The share name for the SMB share.",
  1391. "schema": {
  1392. "type": "string",
  1393. "required": true
  1394. }
  1395. },
  1396. {
  1397. "variable": "domain",
  1398. "label": "Domain (Optional)",
  1399. "description": "The domain for the SMB share.",
  1400. "schema": {
  1401. "type": "string"
  1402. }
  1403. },
  1404. {
  1405. "variable": "username",
  1406. "label": "Username",
  1407. "description": "The username for the SMB share.",
  1408. "schema": {
  1409. "type": "string",
  1410. "required": true
  1411. }
  1412. },
  1413. {
  1414. "variable": "password",
  1415. "label": "Password",
  1416. "description": "The password for the SMB share.",
  1417. "schema": {
  1418. "type": "string",
  1419. "required": true,
  1420. "private": true
  1421. }
  1422. },
  1423. {
  1424. "variable": "size",
  1425. "label": "Size (in Gi)",
  1426. "description": "The size of the volume quota.",
  1427. "schema": {
  1428. "type": "int",
  1429. "required": true,
  1430. "min": 1,
  1431. "default": 1
  1432. }
  1433. }
  1434. ]
  1435. }
  1436. }
  1437. ]
  1438. }
  1439. }
  1440. ]
  1441. }
  1442. }
  1443. ]
  1444. }
  1445. },
  1446. {
  1447. "variable": "resources",
  1448. "group": "Resources Configuration",
  1449. "label": "",
  1450. "schema": {
  1451. "type": "dict",
  1452. "attrs": [
  1453. {
  1454. "variable": "limits",
  1455. "label": "Limits",
  1456. "schema": {
  1457. "type": "dict",
  1458. "attrs": [
  1459. {
  1460. "variable": "cpu",
  1461. "label": "CPU",
  1462. "description": "CPU limit for Unifi Protect Backup.",
  1463. "schema": {
  1464. "type": "string",
  1465. "max_length": 6,
  1466. "valid_chars": "^(0\\.[1-9]|[1-9][0-9]*)(\\.[0-9]|m?)$",
  1467. "valid_chars_error": "Valid CPU limit formats are</br>\n- Plain Integer - eg. 1</br>\n- Float - eg. 0.5</br>\n- Milicpu - eg. 500m\n",
  1468. "default": "4000m",
  1469. "required": true
  1470. }
  1471. },
  1472. {
  1473. "variable": "memory",
  1474. "label": "Memory",
  1475. "description": "Memory limit for Unifi Protect Backup.",
  1476. "schema": {
  1477. "type": "string",
  1478. "max_length": 12,
  1479. "valid_chars": "^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$",
  1480. "valid_chars_error": "Valid Memory limit formats are</br>\n- Suffixed with E/P/T/G/M/K - eg. 1G</br>\n- Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>\n- Plain Integer in bytes - eg. 1024</br>\n- Exponent - eg. 134e6\n",
  1481. "default": "8Gi",
  1482. "required": true
  1483. }
  1484. }
  1485. ]
  1486. }
  1487. }
  1488. ]
  1489. }
  1490. }
  1491. ]
  1492. },
  1493. "app_readme": "<h1>Unifi Protect Backup</h1>\n<p><a href=\"https://github.com/ep1cman/unifi-protect-backup\">Unifi Protect Backup</a> is a python based tool for backing up UniFi Protect event clips as they occur.</p>",
  1494. "detailed_readme": "<h1>Unifi Protect Backup</h1>\n<p><a href=\"https://github.com/ep1cman/unifi-protect-backup\">Unifi Protect Backup</a> is a python based tool for backing up UniFi Protect event clips as they occur.</p>",
  1495. "changelog": null
  1496. }
  1497. }