Skip to main content

LAST_KNOWN_RESOURCE_ID_ANNOTATION

Constant LAST_KNOWN_RESOURCE_ID_ANNOTATION 

Source
pub const LAST_KNOWN_RESOURCE_ID_ANNOTATION: &str = "materialize.cloud/last-known-resource-id";
Expand description

Sets the resource ID of a new Materialize resource, so that a resource recreated on existing data, for example after a restore, keeps the names of the resource it replaces.

The operator refuses an ID that another Materialize resource still has. The prior resource must be entirely cleaned up (--cascade=foreground) before redeploying. Otherwise, you may hit collisions with resources that are actively being deleted.