Restore Policy
Restore policy controls how resources are restored to the target cluster.
Common Options
- Existing resource policy.
- Namespace mapping.
- StorageClass mapping.
- Resource include and exclude rules.
- Label selectors.
- Resource customization and bulk image-prefix rewrite.
- Workload modifiers.
Existing Resources
A restore may skip, update, or replace existing resources depending on policy. Production policies should be explicit to avoid surprising overwrite behavior.
Standby Workloads
Standby restore usually patches workload replicas to 0, while preserving enough information to scale the workload up during failover.
Workload Image Prefix Rewrite
For application workload images, do not use the legacy image registry mapping path for new configurations. Configure restorePolicy.bulkModifierActions[].action=rewriteImage instead. The operator reads the current source workload image during ResourceSync or Drill restore construction and generates runtime modifier rules from stable source and target prefixes.
This is safer for images whose tag or digest changes frequently. See Resource Customization And Bulk Changes for the copy-pasteable DSL.