mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-09-28 10:45:44 +00:00
* use old namespace in resource modifier * add changelog * update docs * updated after review --------- Signed-off-by: lou <alex1988@outlook.com> Signed-off-by: Anshul Ahuja <anshulahuja@microsoft.com> Co-authored-by: Guang Jiong Lou <7991675+27149chen@users.noreply.github.com> Co-authored-by: Daniel Jiang <jiangd@vmware.com>
This commit is contained in:
co-authored by
Guang Jiong Lou
Daniel Jiang
parent
d9859d99ba
commit
8b8a5a2bcc
@@ -96,6 +96,7 @@ resourceModifierRules:
|
||||
path: "/metadata/labels/test"
|
||||
```
|
||||
- The above configmap will apply the JSON Patch to all the PVCs in the namespaces bar and foo with name starting with mysql. The JSON Patch will replace the storageClassName with "premium" and remove the label "test" from the PVCs.
|
||||
- Note that the Namespace here is the original namespace of the backed up resource, not the new namespace where the resource is going to be restored.
|
||||
- The user can specify multiple JSON Patches for a particular resource. The patches will be applied in the order specified in the configmap. A subsequent patch is applied in order and if multiple patches are specified for the same path, the last patch will override the previous patches.
|
||||
- The user can specify multiple resourceModifierRules in the configmap. The rules will be applied in the order specified in the configmap.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user