mirror of
https://github.com/truenas/charts.git
synced 2026-04-24 18:41:41 +08:00
1497 lines
112 KiB
JSON
1497 lines
112 KiB
JSON
{
|
|
"1.2.5": {
|
|
"healthy": true,
|
|
"supported": false,
|
|
"healthy_error": null,
|
|
"location": "/__w/charts/charts/community/unifi-protect-backup/1.2.5",
|
|
"last_update": "2024-03-20 17:07:53",
|
|
"required_features": [
|
|
"definitions/timezone",
|
|
"normalize/acl",
|
|
"normalize/ixVolume"
|
|
],
|
|
"human_version": "0.10.5_1.2.5",
|
|
"version": "1.2.5",
|
|
"chart_metadata": {
|
|
"name": "unifi-protect-backup",
|
|
"description": "Unifi Protect Backup is a python based tool for backing up UniFi Protect event clips as they occur.",
|
|
"annotations": {
|
|
"title": "Unifi Protect Backup"
|
|
},
|
|
"type": "application",
|
|
"version": "1.2.5",
|
|
"apiVersion": "v2",
|
|
"appVersion": "0.10.5",
|
|
"kubeVersion": ">=1.16.0-0",
|
|
"maintainers": [
|
|
{
|
|
"name": "truenas",
|
|
"url": "https://www.truenas.com/",
|
|
"email": "dev@ixsystems.com"
|
|
}
|
|
],
|
|
"dependencies": [
|
|
{
|
|
"name": "common",
|
|
"repository": "file://../../../common",
|
|
"version": "1.2.9"
|
|
}
|
|
],
|
|
"home": "https://github.com/ep1cman/unifi-protect-backup",
|
|
"icon": "https://media.sys.truenas.net/apps/unifi-protect-backup/icons/icon.png",
|
|
"sources": [
|
|
"https://github.com/ep1cman/unifi-protect-backup",
|
|
"https://github.com/truenas/charts/tree/master/community/unifi-protect-backup",
|
|
"https://github.com/ep1cman/unifi-protect-backup/pkgs/container/unifi-protect-backup/"
|
|
],
|
|
"keywords": [
|
|
"backup",
|
|
"unifi-protect"
|
|
]
|
|
},
|
|
"app_metadata": {
|
|
"runAsContext": [
|
|
{
|
|
"userName": "root",
|
|
"groupName": "root",
|
|
"gid": 0,
|
|
"uid": 0,
|
|
"description": "Unifi Protect Backup run as root user"
|
|
}
|
|
],
|
|
"capabilities": [
|
|
{
|
|
"name": "CHOWN",
|
|
"description": "Unifi Protect Backup is able to chown files."
|
|
},
|
|
{
|
|
"name": "FOWNER",
|
|
"description": "Unifi Protect Backup is able bypass permission checks for it's sub-processes."
|
|
},
|
|
{
|
|
"name": "SETGID",
|
|
"description": "Unifi Protect Backup is able to set group ID for it's sub-processes."
|
|
},
|
|
{
|
|
"name": "SETUID",
|
|
"description": "Unifi Protect Backup is able to set user ID for it's sub-processes."
|
|
}
|
|
],
|
|
"hostMounts": []
|
|
},
|
|
"schema": {
|
|
"groups": [
|
|
{
|
|
"name": "Unifi Protect Backup Configuration",
|
|
"description": "Configure Unifi Protect Backup"
|
|
},
|
|
{
|
|
"name": "User and Group Configuration",
|
|
"description": "Configure User and Group for Unifi Protect Backup"
|
|
},
|
|
{
|
|
"name": "Storage Configuration",
|
|
"description": "Configure Storage for Unifi Protect Backup"
|
|
},
|
|
{
|
|
"name": "Resources Configuration",
|
|
"description": "Configure Resources for Unifi Protect Backup"
|
|
}
|
|
],
|
|
"questions": [
|
|
{
|
|
"variable": "TZ",
|
|
"group": "Unifi Protect Backup Configuration",
|
|
"label": "Timezone",
|
|
"schema": {
|
|
"type": "string",
|
|
"default": "America/Los_Angeles",
|
|
"required": true,
|
|
"$ref": [
|
|
"definitions/timezone"
|
|
],
|
|
"enum": [
|
|
{
|
|
"value": "Asia/Damascus",
|
|
"description": "'Asia/Damascus' timezone"
|
|
},
|
|
{
|
|
"value": "Asia/Saigon",
|
|
"description": "'Asia/Saigon' timezone"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"variable": "upbConfig",
|
|
"label": "",
|
|
"group": "Unifi Protect Backup Configuration",
|
|
"schema": {
|
|
"type": "dict",
|
|
"attrs": [
|
|
{
|
|
"variable": "unifiProtectUsername",
|
|
"label": "Unifi Protect Username",
|
|
"description": "Username to login to Unifi Protect instance",
|
|
"schema": {
|
|
"type": "string",
|
|
"required": true
|
|
}
|
|
},
|
|
{
|
|
"variable": "unifiProtectPassword",
|
|
"label": "Unifi Protect Password",
|
|
"description": "Password for Unifi Protect user",
|
|
"schema": {
|
|
"type": "string",
|
|
"required": true,
|
|
"private": true
|
|
}
|
|
},
|
|
{
|
|
"variable": "unifiProtectAddress",
|
|
"label": "Unifi Protect Address",
|
|
"description": "Address of Unifi Protect instance",
|
|
"schema": {
|
|
"type": "string",
|
|
"required": true
|
|
}
|
|
},
|
|
{
|
|
"variable": "unifiProtectPort",
|
|
"label": "Unifi Protect Port",
|
|
"description": "Port of Unifi Protect instance",
|
|
"schema": {
|
|
"type": "int",
|
|
"min": 1,
|
|
"max": 65535,
|
|
"required": true,
|
|
"default": 443
|
|
}
|
|
},
|
|
{
|
|
"variable": "unifiProtectVerifySsl",
|
|
"label": "Unifi Protect Verify SSL",
|
|
"description": "Verify SSL certificate of Unifi Protect instance",
|
|
"schema": {
|
|
"type": "boolean",
|
|
"default": true
|
|
}
|
|
},
|
|
{
|
|
"variable": "skipMissing",
|
|
"label": "Skip Missing",
|
|
"description": "If set, events which are 'missing' at the start will be ignored.",
|
|
"schema": {
|
|
"type": "boolean",
|
|
"default": false
|
|
}
|
|
},
|
|
{
|
|
"variable": "ignoreCameras",
|
|
"label": "Ignore Cameras",
|
|
"description": "IDs of cameras for which events should not be backed up. One per line.",
|
|
"schema": {
|
|
"type": "list",
|
|
"default": [],
|
|
"items": [
|
|
{
|
|
"variable": "id",
|
|
"label": "Camera ID",
|
|
"schema": {
|
|
"type": "string",
|
|
"required": true
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"variable": "detectionTypes",
|
|
"label": "Detection Types",
|
|
"description": "Types of detections to back up. One per line.",
|
|
"schema": {
|
|
"type": "list",
|
|
"default": [
|
|
"motion",
|
|
"person",
|
|
"vehicle",
|
|
"ring"
|
|
],
|
|
"items": [
|
|
{
|
|
"variable": "type",
|
|
"label": "Detection Type",
|
|
"schema": {
|
|
"type": "string",
|
|
"required": true,
|
|
"enum": [
|
|
{
|
|
"value": "motion",
|
|
"description": "Motion"
|
|
},
|
|
{
|
|
"value": "person",
|
|
"description": "Person"
|
|
},
|
|
{
|
|
"value": "vehicle",
|
|
"description": "Vehicle"
|
|
},
|
|
{
|
|
"value": "ring",
|
|
"description": "Ring"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"variable": "rcloneDestination",
|
|
"label": "Rclone Destination",
|
|
"description": "Rclone destination path in the format {rclone-remote}:{path-on-remote} </br.>\nE.g. `gdrive:/backups/unifi_protect`\n",
|
|
"schema": {
|
|
"type": "string",
|
|
"required": true
|
|
}
|
|
},
|
|
{
|
|
"variable": "rcloneArgs",
|
|
"label": "Rclone Arguments",
|
|
"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",
|
|
"schema": {
|
|
"type": "list",
|
|
"default": [],
|
|
"items": [
|
|
{
|
|
"variable": "arg",
|
|
"label": "Argument",
|
|
"schema": {
|
|
"type": "string",
|
|
"required": true
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"variable": "rclonePurgeArgs",
|
|
"label": "Rclone Purge Arguments",
|
|
"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",
|
|
"schema": {
|
|
"type": "list",
|
|
"default": [],
|
|
"items": [
|
|
{
|
|
"variable": "arg",
|
|
"label": "Argument",
|
|
"schema": {
|
|
"type": "string",
|
|
"required": true
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"variable": "additionalEnvs",
|
|
"label": "Additional Environment Variables",
|
|
"description": "Configure additional environment variables for Unifi Protect Backup.",
|
|
"schema": {
|
|
"type": "list",
|
|
"default": [],
|
|
"items": [
|
|
{
|
|
"variable": "env",
|
|
"label": "Environment Variable",
|
|
"schema": {
|
|
"type": "dict",
|
|
"attrs": [
|
|
{
|
|
"variable": "name",
|
|
"label": "Name",
|
|
"schema": {
|
|
"type": "string",
|
|
"required": true
|
|
}
|
|
},
|
|
{
|
|
"variable": "value",
|
|
"label": "Value",
|
|
"schema": {
|
|
"type": "string",
|
|
"required": true
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"variable": "upbID",
|
|
"label": "",
|
|
"group": "User and Group Configuration",
|
|
"schema": {
|
|
"type": "dict",
|
|
"attrs": [
|
|
{
|
|
"variable": "user",
|
|
"label": "User ID",
|
|
"description": "The user id that Unifi Protect Backup files will be owned by.",
|
|
"schema": {
|
|
"type": "int",
|
|
"min": 568,
|
|
"default": 568,
|
|
"required": true
|
|
}
|
|
},
|
|
{
|
|
"variable": "group",
|
|
"label": "Group ID",
|
|
"description": "The group id that Unifi Protect Backup files will be owned by.",
|
|
"schema": {
|
|
"type": "int",
|
|
"min": 568,
|
|
"default": 568,
|
|
"required": true
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"variable": "upbStorage",
|
|
"label": "",
|
|
"group": "Storage Configuration",
|
|
"schema": {
|
|
"type": "dict",
|
|
"attrs": [
|
|
{
|
|
"variable": "config",
|
|
"label": "Unifi Protect Backup Config Storage",
|
|
"description": "The path to store Unifi Protect Backup Configuration.",
|
|
"schema": {
|
|
"type": "dict",
|
|
"attrs": [
|
|
{
|
|
"variable": "type",
|
|
"label": "Type",
|
|
"description": "ixVolume: Is dataset created automatically by the system.</br>\nHost Path: Is a path that already exists on the system.\n",
|
|
"schema": {
|
|
"type": "string",
|
|
"required": true,
|
|
"immutable": true,
|
|
"default": "ixVolume",
|
|
"enum": [
|
|
{
|
|
"value": "hostPath",
|
|
"description": "Host Path (Path that already exists on the system)"
|
|
},
|
|
{
|
|
"value": "ixVolume",
|
|
"description": "ixVolume (Dataset created automatically by the system)"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"variable": "ixVolumeConfig",
|
|
"label": "ixVolume Configuration",
|
|
"description": "The configuration for the ixVolume dataset.",
|
|
"schema": {
|
|
"type": "dict",
|
|
"show_if": [
|
|
[
|
|
"type",
|
|
"=",
|
|
"ixVolume"
|
|
]
|
|
],
|
|
"$ref": [
|
|
"normalize/ixVolume"
|
|
],
|
|
"attrs": [
|
|
{
|
|
"variable": "aclEnable",
|
|
"label": "Enable ACL",
|
|
"description": "Enable ACL for the dataset.",
|
|
"schema": {
|
|
"type": "boolean",
|
|
"default": false
|
|
}
|
|
},
|
|
{
|
|
"variable": "datasetName",
|
|
"label": "Dataset Name",
|
|
"description": "The name of the dataset to use for storage.",
|
|
"schema": {
|
|
"type": "string",
|
|
"required": true,
|
|
"immutable": true,
|
|
"hidden": true,
|
|
"default": "config"
|
|
}
|
|
},
|
|
{
|
|
"variable": "aclEntries",
|
|
"label": "ACL Configuration",
|
|
"schema": {
|
|
"type": "dict",
|
|
"show_if": [
|
|
[
|
|
"aclEnable",
|
|
"=",
|
|
true
|
|
]
|
|
],
|
|
"attrs": [
|
|
{
|
|
"variable": "path",
|
|
"label": "Path",
|
|
"description": "Path to perform ACL",
|
|
"schema": {
|
|
"type": "string",
|
|
"hidden": true
|
|
}
|
|
},
|
|
{
|
|
"variable": "entries",
|
|
"label": "ACL Entries",
|
|
"description": "ACL Entries",
|
|
"schema": {
|
|
"type": "list",
|
|
"items": [
|
|
{
|
|
"variable": "aclEntry",
|
|
"label": "ACL Entry",
|
|
"schema": {
|
|
"type": "dict",
|
|
"attrs": [
|
|
{
|
|
"variable": "id_type",
|
|
"label": "ID Type",
|
|
"schema": {
|
|
"type": "string",
|
|
"enum": [
|
|
{
|
|
"value": "USER",
|
|
"description": "Entry is for a USER"
|
|
},
|
|
{
|
|
"value": "GROUP",
|
|
"description": "Entry is for a GROUP"
|
|
}
|
|
],
|
|
"default": "USER"
|
|
}
|
|
},
|
|
{
|
|
"variable": "id",
|
|
"label": "ID",
|
|
"description": "Make sure to check the ID value is correct and aligns with RunAs user context of the application",
|
|
"schema": {
|
|
"type": "int",
|
|
"required": true,
|
|
"min": 0
|
|
}
|
|
},
|
|
{
|
|
"variable": "access",
|
|
"label": "Access",
|
|
"schema": {
|
|
"type": "string",
|
|
"enum": [
|
|
{
|
|
"value": "READ",
|
|
"description": "Read Access"
|
|
},
|
|
{
|
|
"value": "MODIFY",
|
|
"description": "Modify Access"
|
|
},
|
|
{
|
|
"value": "FULL_CONTROL",
|
|
"description": "FULL_CONTROL Access"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"variable": "hostPathConfig",
|
|
"label": "Host Path Configuration",
|
|
"schema": {
|
|
"type": "dict",
|
|
"show_if": [
|
|
[
|
|
"type",
|
|
"=",
|
|
"hostPath"
|
|
]
|
|
],
|
|
"attrs": [
|
|
{
|
|
"variable": "aclEnable",
|
|
"label": "Enable ACL",
|
|
"description": "Enable ACL for the dataset.",
|
|
"schema": {
|
|
"type": "boolean",
|
|
"default": false
|
|
}
|
|
},
|
|
{
|
|
"variable": "acl",
|
|
"label": "ACL Configuration",
|
|
"schema": {
|
|
"type": "dict",
|
|
"show_if": [
|
|
[
|
|
"aclEnable",
|
|
"=",
|
|
true
|
|
]
|
|
],
|
|
"attrs": [
|
|
{
|
|
"variable": "path",
|
|
"label": "Host Path",
|
|
"description": "Host Path to perform ACL",
|
|
"schema": {
|
|
"type": "hostpath",
|
|
"required": true,
|
|
"empty": false
|
|
}
|
|
},
|
|
{
|
|
"variable": "entries",
|
|
"label": "ACL Entries",
|
|
"description": "ACL Entries",
|
|
"schema": {
|
|
"type": "list",
|
|
"items": [
|
|
{
|
|
"variable": "aclEntry",
|
|
"label": "ACL Entry",
|
|
"schema": {
|
|
"type": "dict",
|
|
"attrs": [
|
|
{
|
|
"variable": "id_type",
|
|
"label": "ID Type",
|
|
"schema": {
|
|
"type": "string",
|
|
"enum": [
|
|
{
|
|
"value": "USER",
|
|
"description": "Entry is for a USER"
|
|
},
|
|
{
|
|
"value": "GROUP",
|
|
"description": "Entry is for a GROUP"
|
|
}
|
|
],
|
|
"default": "USER"
|
|
}
|
|
},
|
|
{
|
|
"variable": "id",
|
|
"label": "ID",
|
|
"description": "Make sure to check the ID value is correct and aligns with RunAs user context of the application",
|
|
"schema": {
|
|
"type": "int",
|
|
"required": true,
|
|
"min": 0
|
|
}
|
|
},
|
|
{
|
|
"variable": "access",
|
|
"label": "Access",
|
|
"schema": {
|
|
"type": "string",
|
|
"enum": [
|
|
{
|
|
"value": "READ",
|
|
"description": "Read Access"
|
|
},
|
|
{
|
|
"value": "MODIFY",
|
|
"description": "Modify Access"
|
|
},
|
|
{
|
|
"value": "FULL_CONTROL",
|
|
"description": "FULL_CONTROL Access"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"variable": "options",
|
|
"label": "ACL Options",
|
|
"schema": {
|
|
"type": "dict",
|
|
"attrs": [
|
|
{
|
|
"variable": "force",
|
|
"label": "Force Flag",
|
|
"description": "Enabling `Force` applies ACL even if the path has existing data",
|
|
"schema": {
|
|
"type": "boolean",
|
|
"default": false
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"$ref": [
|
|
"normalize/acl"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"variable": "hostPath",
|
|
"label": "Host Path",
|
|
"description": "The host path to use for storage.",
|
|
"schema": {
|
|
"type": "hostpath",
|
|
"show_if": [
|
|
[
|
|
"aclEnable",
|
|
"=",
|
|
false
|
|
]
|
|
],
|
|
"required": true
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"variable": "data",
|
|
"label": "Unifi Protect Backup Data Storage",
|
|
"description": "The path to store Unifi Protect Backup Data.",
|
|
"schema": {
|
|
"type": "dict",
|
|
"attrs": [
|
|
{
|
|
"variable": "type",
|
|
"label": "Type",
|
|
"description": "ixVolume: Is dataset created automatically by the system.</br>\nHost Path: Is a path that already exists on the system.\n",
|
|
"schema": {
|
|
"type": "string",
|
|
"required": true,
|
|
"immutable": true,
|
|
"default": "ixVolume",
|
|
"enum": [
|
|
{
|
|
"value": "hostPath",
|
|
"description": "Host Path (Path that already exists on the system)"
|
|
},
|
|
{
|
|
"value": "ixVolume",
|
|
"description": "ixVolume (Dataset created automatically by the system)"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"variable": "ixVolumeConfig",
|
|
"label": "ixVolume Configuration",
|
|
"description": "The configuration for the ixVolume dataset.",
|
|
"schema": {
|
|
"type": "dict",
|
|
"show_if": [
|
|
[
|
|
"type",
|
|
"=",
|
|
"ixVolume"
|
|
]
|
|
],
|
|
"$ref": [
|
|
"normalize/ixVolume"
|
|
],
|
|
"attrs": [
|
|
{
|
|
"variable": "aclEnable",
|
|
"label": "Enable ACL",
|
|
"description": "Enable ACL for the dataset.",
|
|
"schema": {
|
|
"type": "boolean",
|
|
"default": false
|
|
}
|
|
},
|
|
{
|
|
"variable": "datasetName",
|
|
"label": "Dataset Name",
|
|
"description": "The name of the dataset to use for storage.",
|
|
"schema": {
|
|
"type": "string",
|
|
"required": true,
|
|
"immutable": true,
|
|
"hidden": true,
|
|
"default": "data"
|
|
}
|
|
},
|
|
{
|
|
"variable": "aclEntries",
|
|
"label": "ACL Configuration",
|
|
"schema": {
|
|
"type": "dict",
|
|
"show_if": [
|
|
[
|
|
"aclEnable",
|
|
"=",
|
|
true
|
|
]
|
|
],
|
|
"attrs": [
|
|
{
|
|
"variable": "path",
|
|
"label": "Path",
|
|
"description": "Path to perform ACL",
|
|
"schema": {
|
|
"type": "string",
|
|
"hidden": true
|
|
}
|
|
},
|
|
{
|
|
"variable": "entries",
|
|
"label": "ACL Entries",
|
|
"description": "ACL Entries",
|
|
"schema": {
|
|
"type": "list",
|
|
"items": [
|
|
{
|
|
"variable": "aclEntry",
|
|
"label": "ACL Entry",
|
|
"schema": {
|
|
"type": "dict",
|
|
"attrs": [
|
|
{
|
|
"variable": "id_type",
|
|
"label": "ID Type",
|
|
"schema": {
|
|
"type": "string",
|
|
"enum": [
|
|
{
|
|
"value": "USER",
|
|
"description": "Entry is for a USER"
|
|
},
|
|
{
|
|
"value": "GROUP",
|
|
"description": "Entry is for a GROUP"
|
|
}
|
|
],
|
|
"default": "USER"
|
|
}
|
|
},
|
|
{
|
|
"variable": "id",
|
|
"label": "ID",
|
|
"description": "Make sure to check the ID value is correct and aligns with RunAs user context of the application",
|
|
"schema": {
|
|
"type": "int",
|
|
"required": true,
|
|
"min": 0
|
|
}
|
|
},
|
|
{
|
|
"variable": "access",
|
|
"label": "Access",
|
|
"schema": {
|
|
"type": "string",
|
|
"enum": [
|
|
{
|
|
"value": "READ",
|
|
"description": "Read Access"
|
|
},
|
|
{
|
|
"value": "MODIFY",
|
|
"description": "Modify Access"
|
|
},
|
|
{
|
|
"value": "FULL_CONTROL",
|
|
"description": "FULL_CONTROL Access"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"variable": "hostPathConfig",
|
|
"label": "Host Path Configuration",
|
|
"schema": {
|
|
"type": "dict",
|
|
"show_if": [
|
|
[
|
|
"type",
|
|
"=",
|
|
"hostPath"
|
|
]
|
|
],
|
|
"attrs": [
|
|
{
|
|
"variable": "aclEnable",
|
|
"label": "Enable ACL",
|
|
"description": "Enable ACL for the dataset.",
|
|
"schema": {
|
|
"type": "boolean",
|
|
"default": false
|
|
}
|
|
},
|
|
{
|
|
"variable": "acl",
|
|
"label": "ACL Configuration",
|
|
"schema": {
|
|
"type": "dict",
|
|
"show_if": [
|
|
[
|
|
"aclEnable",
|
|
"=",
|
|
true
|
|
]
|
|
],
|
|
"attrs": [
|
|
{
|
|
"variable": "path",
|
|
"label": "Host Path",
|
|
"description": "Host Path to perform ACL",
|
|
"schema": {
|
|
"type": "hostpath",
|
|
"required": true,
|
|
"empty": false
|
|
}
|
|
},
|
|
{
|
|
"variable": "entries",
|
|
"label": "ACL Entries",
|
|
"description": "ACL Entries",
|
|
"schema": {
|
|
"type": "list",
|
|
"items": [
|
|
{
|
|
"variable": "aclEntry",
|
|
"label": "ACL Entry",
|
|
"schema": {
|
|
"type": "dict",
|
|
"attrs": [
|
|
{
|
|
"variable": "id_type",
|
|
"label": "ID Type",
|
|
"schema": {
|
|
"type": "string",
|
|
"enum": [
|
|
{
|
|
"value": "USER",
|
|
"description": "Entry is for a USER"
|
|
},
|
|
{
|
|
"value": "GROUP",
|
|
"description": "Entry is for a GROUP"
|
|
}
|
|
],
|
|
"default": "USER"
|
|
}
|
|
},
|
|
{
|
|
"variable": "id",
|
|
"label": "ID",
|
|
"description": "Make sure to check the ID value is correct and aligns with RunAs user context of the application",
|
|
"schema": {
|
|
"type": "int",
|
|
"required": true,
|
|
"min": 0
|
|
}
|
|
},
|
|
{
|
|
"variable": "access",
|
|
"label": "Access",
|
|
"schema": {
|
|
"type": "string",
|
|
"enum": [
|
|
{
|
|
"value": "READ",
|
|
"description": "Read Access"
|
|
},
|
|
{
|
|
"value": "MODIFY",
|
|
"description": "Modify Access"
|
|
},
|
|
{
|
|
"value": "FULL_CONTROL",
|
|
"description": "FULL_CONTROL Access"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"variable": "options",
|
|
"label": "ACL Options",
|
|
"schema": {
|
|
"type": "dict",
|
|
"attrs": [
|
|
{
|
|
"variable": "force",
|
|
"label": "Force Flag",
|
|
"description": "Enabling `Force` applies ACL even if the path has existing data",
|
|
"schema": {
|
|
"type": "boolean",
|
|
"default": false
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"$ref": [
|
|
"normalize/acl"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"variable": "hostPath",
|
|
"label": "Host Path",
|
|
"description": "The host path to use for storage.",
|
|
"schema": {
|
|
"type": "hostpath",
|
|
"show_if": [
|
|
[
|
|
"aclEnable",
|
|
"=",
|
|
false
|
|
]
|
|
],
|
|
"required": true
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"variable": "additionalStorages",
|
|
"label": "Additional Storage",
|
|
"description": "Additional storage for Unifi Protect Backup.",
|
|
"schema": {
|
|
"type": "list",
|
|
"default": [],
|
|
"items": [
|
|
{
|
|
"variable": "storageEntry",
|
|
"label": "Storage Entry",
|
|
"schema": {
|
|
"type": "dict",
|
|
"attrs": [
|
|
{
|
|
"variable": "type",
|
|
"label": "Type",
|
|
"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",
|
|
"schema": {
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "ixVolume",
|
|
"immutable": true,
|
|
"enum": [
|
|
{
|
|
"value": "hostPath",
|
|
"description": "Host Path (Path that already exists on the system)"
|
|
},
|
|
{
|
|
"value": "ixVolume",
|
|
"description": "ixVolume (Dataset created automatically by the system)"
|
|
},
|
|
{
|
|
"value": "smb-pv-pvc",
|
|
"description": "SMB Share (Mounts a persistent volume claim to a SMB share)"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"variable": "readOnly",
|
|
"label": "Read Only",
|
|
"description": "Mount the volume as read only.",
|
|
"schema": {
|
|
"type": "boolean",
|
|
"default": false
|
|
}
|
|
},
|
|
{
|
|
"variable": "mountPath",
|
|
"label": "Mount Path",
|
|
"description": "The path inside the container to mount the storage.",
|
|
"schema": {
|
|
"type": "path",
|
|
"required": true
|
|
}
|
|
},
|
|
{
|
|
"variable": "hostPathConfig",
|
|
"label": "Host Path Configuration",
|
|
"schema": {
|
|
"type": "dict",
|
|
"show_if": [
|
|
[
|
|
"type",
|
|
"=",
|
|
"hostPath"
|
|
]
|
|
],
|
|
"attrs": [
|
|
{
|
|
"variable": "aclEnable",
|
|
"label": "Enable ACL",
|
|
"description": "Enable ACL for the dataset.",
|
|
"schema": {
|
|
"type": "boolean",
|
|
"default": false
|
|
}
|
|
},
|
|
{
|
|
"variable": "acl",
|
|
"label": "ACL Configuration",
|
|
"schema": {
|
|
"type": "dict",
|
|
"show_if": [
|
|
[
|
|
"aclEnable",
|
|
"=",
|
|
true
|
|
]
|
|
],
|
|
"attrs": [
|
|
{
|
|
"variable": "path",
|
|
"label": "Host Path",
|
|
"description": "Host Path to perform ACL",
|
|
"schema": {
|
|
"type": "hostpath",
|
|
"required": true,
|
|
"empty": false
|
|
}
|
|
},
|
|
{
|
|
"variable": "entries",
|
|
"label": "ACL Entries",
|
|
"description": "ACL Entries",
|
|
"schema": {
|
|
"type": "list",
|
|
"items": [
|
|
{
|
|
"variable": "aclEntry",
|
|
"label": "ACL Entry",
|
|
"schema": {
|
|
"type": "dict",
|
|
"attrs": [
|
|
{
|
|
"variable": "id_type",
|
|
"label": "ID Type",
|
|
"schema": {
|
|
"type": "string",
|
|
"enum": [
|
|
{
|
|
"value": "USER",
|
|
"description": "Entry is for a USER"
|
|
},
|
|
{
|
|
"value": "GROUP",
|
|
"description": "Entry is for a GROUP"
|
|
}
|
|
],
|
|
"default": "USER"
|
|
}
|
|
},
|
|
{
|
|
"variable": "id",
|
|
"label": "ID",
|
|
"description": "Make sure to check the ID value is correct and aligns with RunAs user context of the application",
|
|
"schema": {
|
|
"type": "int",
|
|
"required": true,
|
|
"min": 0
|
|
}
|
|
},
|
|
{
|
|
"variable": "access",
|
|
"label": "Access",
|
|
"schema": {
|
|
"type": "string",
|
|
"enum": [
|
|
{
|
|
"value": "READ",
|
|
"description": "Read Access"
|
|
},
|
|
{
|
|
"value": "MODIFY",
|
|
"description": "Modify Access"
|
|
},
|
|
{
|
|
"value": "FULL_CONTROL",
|
|
"description": "FULL_CONTROL Access"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"variable": "options",
|
|
"label": "ACL Options",
|
|
"schema": {
|
|
"type": "dict",
|
|
"attrs": [
|
|
{
|
|
"variable": "force",
|
|
"label": "Force Flag",
|
|
"description": "Enabling `Force` applies ACL even if the path has existing data",
|
|
"schema": {
|
|
"type": "boolean",
|
|
"default": false
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"$ref": [
|
|
"normalize/acl"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"variable": "hostPath",
|
|
"label": "Host Path",
|
|
"description": "The host path to use for storage.",
|
|
"schema": {
|
|
"type": "hostpath",
|
|
"show_if": [
|
|
[
|
|
"aclEnable",
|
|
"=",
|
|
false
|
|
]
|
|
],
|
|
"required": true
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"variable": "ixVolumeConfig",
|
|
"label": "ixVolume Configuration",
|
|
"description": "The configuration for the ixVolume dataset.",
|
|
"schema": {
|
|
"type": "dict",
|
|
"show_if": [
|
|
[
|
|
"type",
|
|
"=",
|
|
"ixVolume"
|
|
]
|
|
],
|
|
"$ref": [
|
|
"normalize/ixVolume"
|
|
],
|
|
"attrs": [
|
|
{
|
|
"variable": "aclEnable",
|
|
"label": "Enable ACL",
|
|
"description": "Enable ACL for the dataset.",
|
|
"schema": {
|
|
"type": "boolean",
|
|
"default": false
|
|
}
|
|
},
|
|
{
|
|
"variable": "datasetName",
|
|
"label": "Dataset Name",
|
|
"description": "The name of the dataset to use for storage.",
|
|
"schema": {
|
|
"type": "string",
|
|
"required": true,
|
|
"immutable": true,
|
|
"default": "storage_entry"
|
|
}
|
|
},
|
|
{
|
|
"variable": "aclEntries",
|
|
"label": "ACL Configuration",
|
|
"schema": {
|
|
"type": "dict",
|
|
"show_if": [
|
|
[
|
|
"aclEnable",
|
|
"=",
|
|
true
|
|
]
|
|
],
|
|
"attrs": [
|
|
{
|
|
"variable": "path",
|
|
"label": "Path",
|
|
"description": "Path to perform ACL",
|
|
"schema": {
|
|
"type": "string",
|
|
"hidden": true
|
|
}
|
|
},
|
|
{
|
|
"variable": "entries",
|
|
"label": "ACL Entries",
|
|
"description": "ACL Entries",
|
|
"schema": {
|
|
"type": "list",
|
|
"items": [
|
|
{
|
|
"variable": "aclEntry",
|
|
"label": "ACL Entry",
|
|
"schema": {
|
|
"type": "dict",
|
|
"attrs": [
|
|
{
|
|
"variable": "id_type",
|
|
"label": "ID Type",
|
|
"schema": {
|
|
"type": "string",
|
|
"enum": [
|
|
{
|
|
"value": "USER",
|
|
"description": "Entry is for a USER"
|
|
},
|
|
{
|
|
"value": "GROUP",
|
|
"description": "Entry is for a GROUP"
|
|
}
|
|
],
|
|
"default": "USER"
|
|
}
|
|
},
|
|
{
|
|
"variable": "id",
|
|
"label": "ID",
|
|
"description": "Make sure to check the ID value is correct and aligns with RunAs user context of the application",
|
|
"schema": {
|
|
"type": "int",
|
|
"required": true,
|
|
"min": 0
|
|
}
|
|
},
|
|
{
|
|
"variable": "access",
|
|
"label": "Access",
|
|
"schema": {
|
|
"type": "string",
|
|
"enum": [
|
|
{
|
|
"value": "READ",
|
|
"description": "Read Access"
|
|
},
|
|
{
|
|
"value": "MODIFY",
|
|
"description": "Modify Access"
|
|
},
|
|
{
|
|
"value": "FULL_CONTROL",
|
|
"description": "FULL_CONTROL Access"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"variable": "smbConfig",
|
|
"label": "SMB Share Configuration",
|
|
"description": "The configuration for the SMB Share.",
|
|
"schema": {
|
|
"type": "dict",
|
|
"show_if": [
|
|
[
|
|
"type",
|
|
"=",
|
|
"smb-pv-pvc"
|
|
]
|
|
],
|
|
"attrs": [
|
|
{
|
|
"variable": "server",
|
|
"label": "Server",
|
|
"description": "The server for the SMB share.",
|
|
"schema": {
|
|
"type": "string",
|
|
"required": true
|
|
}
|
|
},
|
|
{
|
|
"variable": "share",
|
|
"label": "Share",
|
|
"description": "The share name for the SMB share.",
|
|
"schema": {
|
|
"type": "string",
|
|
"required": true
|
|
}
|
|
},
|
|
{
|
|
"variable": "domain",
|
|
"label": "Domain (Optional)",
|
|
"description": "The domain for the SMB share.",
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"variable": "username",
|
|
"label": "Username",
|
|
"description": "The username for the SMB share.",
|
|
"schema": {
|
|
"type": "string",
|
|
"required": true
|
|
}
|
|
},
|
|
{
|
|
"variable": "password",
|
|
"label": "Password",
|
|
"description": "The password for the SMB share.",
|
|
"schema": {
|
|
"type": "string",
|
|
"required": true,
|
|
"private": true
|
|
}
|
|
},
|
|
{
|
|
"variable": "size",
|
|
"label": "Size (in Gi)",
|
|
"description": "The size of the volume quota.",
|
|
"schema": {
|
|
"type": "int",
|
|
"required": true,
|
|
"min": 1,
|
|
"default": 1
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"variable": "resources",
|
|
"group": "Resources Configuration",
|
|
"label": "",
|
|
"schema": {
|
|
"type": "dict",
|
|
"attrs": [
|
|
{
|
|
"variable": "limits",
|
|
"label": "Limits",
|
|
"schema": {
|
|
"type": "dict",
|
|
"attrs": [
|
|
{
|
|
"variable": "cpu",
|
|
"label": "CPU",
|
|
"description": "CPU limit for Unifi Protect Backup.",
|
|
"schema": {
|
|
"type": "string",
|
|
"max_length": 6,
|
|
"valid_chars": "^(0\\.[1-9]|[1-9][0-9]*)(\\.[0-9]|m?)$",
|
|
"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",
|
|
"default": "4000m",
|
|
"required": true
|
|
}
|
|
},
|
|
{
|
|
"variable": "memory",
|
|
"label": "Memory",
|
|
"description": "Memory limit for Unifi Protect Backup.",
|
|
"schema": {
|
|
"type": "string",
|
|
"max_length": 12,
|
|
"valid_chars": "^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$",
|
|
"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",
|
|
"default": "8Gi",
|
|
"required": true
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"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>",
|
|
"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>",
|
|
"changelog": null
|
|
}
|
|
} |