pub async fn remove_cluster_finalizer<T>(
client: &Client,
resource: &T,
finalizer: &str,
) -> Result<()>where
T: Resource<DynamicType = (), Scope = ClusterResourceScope> + ResourceExt + Clone + Debug + Serialize + for<'de> Deserialize<'de>,Expand description
Remove a finalizer from a cluster-scoped resource.
This function removes the specified finalizer from the cluster-scoped resource if present. The operation is idempotent - calling it multiple times has no effect if the finalizer is already absent.
Note: Typically you should use handle_cluster_deletion() instead of calling
this function directly, as it performs cleanup before removing the finalizer.
§Arguments
client- Kubernetes client for accessing the APIresource- The cluster-scoped resource to remove the finalizer fromfinalizer- The finalizer string to remove
§Returns
Returns Ok(()) if the finalizer was removed or already absent.
§Errors
Returns an error if the API patch operation fails.