Substitutions of YAML / JSON values through configmap/ RestoreItemAction #5809
Labels
kind/requirement
Needs triage
We need discussion to understand problem and decide the priority
Restore
Milestone
Describe the problem/challenge you have
[A description of the current limitation/problem/challenge that you are experiencing.]
Generic way to subsitute YAML/ JSON properties of the workloads before restoring.
There are a lot of scenarios where customers wish to change certain properties in the YAMLs before restoration, for example removing any cloud specific properties (hardcoded disk encryption key references, VNET references), change the image URLs, change the StorageClass of the PVCs being restored, changing Disk drivers when migrating across clouds, changing other cloud specific properties.
As of today the solutions for each specific problem are being developed as different plugins and using different configmaps, it is very hard from user POV to handle them.
Describe the solution you'd like
[A clear and concise description of what you want to happen.]
Goal is to solve all these problems in a generic way through RestoreItemAction which can substitute all these various properties based on a configmap reference input.
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
Currently there are similar issues and solutions which are solving specific problems.
Examples: Deployment.spec.containers[0].image could be the json path.
Or replacing values which match a certain regex. Similarly for StorageClasses, we can change cloud specific SKUs.
Pending: will add more examples.
Environment:
velero version
):kubectl version
):/etc/os-release
):Vote on this issue!
This is an invitation to the Velero community to vote on issues, you can see the project's top voted issues listed here.
Use the "reaction smiley face" up to the right of this comment to vote.
The text was updated successfully, but these errors were encountered: