Skip to main content

reconcile_named_object

Function reconcile_named_object 

Source
pub async fn reconcile_named_object(
    client: &Client,
    executor: &DeploymentExecutor<'_>,
    name: &str,
    grants: &[GrantPrivilegesStatement<Raw>],
    kind: &GrantNamedObjectKind,
) -> Result<(), CliError>
Expand description

Reconcile grants for a named infrastructure object (cluster or network policy).

Three-step algorithm:

  1. Apply all desired GRANTs idempotently (GRANT is a no-op if already present).
  2. Query the live grant state and default-privilege grants from the catalog.
  3. Compute the set difference (current - desired - protected) and REVOKE stale grants.