delete_bind9instance

Function delete_bind9instance 

Source
pub async fn delete_bind9instance(
    client: Client,
    instance: Bind9Instance,
) -> Result<()>
Expand description

Deletes all resources associated with a Bind9Instance.

Cleans up Kubernetes resources in reverse order:

  1. Service
  2. Deployment
  3. ConfigMap

§Arguments

  • client - Kubernetes API client
  • instance - The Bind9Instance resource to delete

§Returns

  • Ok(()) - If deletion succeeded or resources didn’t exist
  • Err(_) - If a critical error occurred during deletion

§Errors

Returns an error if Kubernetes API operations fail during resource deletion.